How can I store multiple arrays of size (1x17) in a Dwork vector inside a Level2 MS Function in Simulink?
Assume I periodically pass an array (size 1x17) into my Level2-MS-Function, I want to be able to have a list of, say, 50 x 17 which means I have 50 different records of that array stored in the Dwork inside my Level2-MS-fucntion so I can then do some comparisons inside my function. The array values differ with time but the size remains always 1x17. I want my Dwork vector to stretch into n by 17, where n is the number of different arrays I pass into the Level2-MS-Function.
I understand that Dworks can only be vectors, but when I try storing the second array, it automatically erases the first row and replaces it with the new one. I want to be able to store all the different rows I pass to the Dwork vecor turning it into a big list (or matrix) where the number of rows increases with the new array I pass from the variable outside the function, and the number of columns is always constant (= 17).