Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Mar 16, 2014
Messages
1
Location
SK
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

Back
Top