https://picasaweb.google.com/100600576001599595108/MATLABSimulink#5834654212202423442
I have attached a simulink model and controlling code,,,
please tell me how to keep the old values of 'b',,,
open_system('C:\Documents and Settings\admin\Desktop\test_Final.slx')
b=1;
for i=1:1:100;
set_param('test_Final','StopTime', sprintf('%d',i));
simout= sim('C:\Documents and Settings\admin\Desktop\test_Final.slx');
pause(1)
if i==6;
b=10;
end
end
No products are associated with this question.
8 Comments
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/59160#comment_123362
"sorry that page is not found"
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/59160#comment_123363
what "old value of b" ?
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/59160#comment_123368
I have sent u a mail with attached simulink model,,please,,if you have time try it,,Mr walter
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/59160#comment_123373
Mr Walter ...could u please tell me which block to use for feedback ,,,i mean it should take value and give it,,,something like 'memory block'
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/59160#comment_123374
https://picasaweb.google.com/100600576001599595108/MATLABSimulink#5834654212202423442
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/59160#comment_123377
"sorry that page is not found" still.
Please do not email me simulink models, as I do not have Simulink.
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/59160#comment_123380
no worries,,i have sent u mail of a scrrenshot,,,not sent any model,,,
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/59160#comment_123386
Please do not contact people directly, unless they request it. Your question is clearly lacking some details. Please edit the question and reopen.