From: Adam Chapman on
I've made some code that goes through a list of code-generated
parameters that need to be assigned to simulink blocks.

Since I have a lot of blocks to assign parameters to and those blocks
al have a different number of parameters, I thought it would make
sense to set all parameters individually, one at a time.

I keep getting an error when I try to set the first parameter of a
lookup table with an array which is a different size to the one
previously set.

for example, say I have a 2D lookup table with parameters:
InputValue=[1 2 3]
Table=[4 5 6]

and i now try to assign [1 2 3 4] to the parameter 'InputValue'
MATLAB complains that 'InputValue' is now a different size to 'Table'.
But if it would just allow the next iteration in the loop to set
'Table' there wouldn't be a problem!

What can I do?

Thanks in advance for any help
Adam
 | 
Pages: 1
Prev: System Identification toolbox
Next: Excel Question