matlab model -- access base workspace variables -


i running test.m file create variables in base work space. content of test.m file :--

a=10;       % define variable particular value b=20;       % define variable particular value c=0;        % define variable particular value 

in matlab model trying access variables & b. returning me value zero both & b.

i using function call generator trigger model every 10 msec.

solver type : fixed step solver : discreate(no continous states) 

why not able access workspace variables in simulink model.

please see attached print shot.

matlab model base workspace

you using inport , named variable name not affect variable it, port. try using constant block , set variable name ("a" example)


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -