| MATLAB Central > MATLAB Newsreader > Self-Modifying Blocks Copy Contents |
|
|
|
Subject: Self-Modifying Blocks Copy Contents From: Richard Date: 21 Oct, 2009 22:58:06 Message: 1 of 4 |
|
I have a block that I would like to have change based on the mask parameters of that block. I have a low level block that will need have the logic repeated multiple times based on the number of wheels specified as a parameter. My idea is to have the user simply put in how many wheels there are as a block parameter, and have the block copy the underlying logic that many times and update the number of inputs and outputs. This will simplify model building for the user in that they won't have to drag over 18 blocks if there are 18 wheels, they would just specify 18 wheels as a parameter, and the block would automatically take care of itself. I was thinking of doing this in the initalization commands of the mask editor. I am not sure how to best accomplish this however. Any help would be greatly appreciated. |
|
Subject: Self-Modifying Blocks Copy Contents From: Arnaud Miege Date: 22 Oct, 2009 08:15:05 Message: 2 of 4 |
|
|
|
Subject: Self-Modifying Blocks Copy Contents From: riccardo Date: 22 Oct, 2009 14:42:04 Message: 3 of 4 |
|
"Arnaud Miege" <arnaud.miege@nospam.mathworks.co.uk> wrote in message <hbp4aa$pj7$1@fred.mathworks.com>... |
|
Subject: Self-Modifying Blocks Copy Contents From: Richard Date: 22 Oct, 2009 15:41:21 Message: 4 of 4 |
|
"Riccardo" <nothx@nospam.org> wrote in message <hbpqvs$hp6$1@fred.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| simulink | Richard | 21 Oct, 2009 18:59:08 |
| selfmodifying b... | Richard | 21 Oct, 2009 18:59:08 |
Contact us at files@mathworks.com
