Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

seting parameter in simulink

Status
Not open for further replies.

procionn

Civil/Environmental
Mar 16, 2014
1
Hi,
I want to use set_param funcion in a ´for´ loop , but value has to be set as a string instead of integer.
This just doesnt work

for k=0:50
set_param('transfer/Step','After',k);
end

I even tried this one, but it doesnt work as well

kstr={'0','1','2','3','4','5'};

for k=0:50
set_param('transfer/Step','After',kstr(k+1));
end

Any idea?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor