I want some data from my simulation when that is running. i use MATLAB-function block in simulink and in this function I need a previous and pre-previous data but i don't know how i can save this data for comparing the present data when it is running online.
I am using the data store memory and also defined the counter in matlab function for read data from data store but I still have an error.