The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Dwork Matrix Manipulation
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 83
Registered: 6/22/12
Dwork Matrix Manipulation
Posted: Nov 26, 2013 6:13 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi folks,

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).

Any tips?
Ta :-)

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.