How to solve this issue

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

댓글 수: 8

Walter Roberson
Walter Roberson 2013년 1월 18일
"sorry that page is not found"
Walter Roberson
Walter Roberson 2013년 1월 18일
what "old value of b" ?
Arun Badigannavar
Arun Badigannavar 2013년 1월 18일
I have sent u a mail with attached simulink model,,please,,if you have time try it,,Mr walter
Arun Badigannavar
Arun Badigannavar 2013년 1월 18일
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'
Walter Roberson
Walter Roberson 2013년 1월 18일
"sorry that page is not found" still.
Please do not email me simulink models, as I do not have Simulink.
Arun Badigannavar
Arun Badigannavar 2013년 1월 18일
no worries,,i have sent u mail of a scrrenshot,,,not sent any model,,,
Daniel Shub
Daniel Shub 2013년 1월 18일
Please do not contact people directly, unless they request it. Your question is clearly lacking some details. Please edit the question and reopen.

답변 (0개)

이 질문은 마감되었습니다.

태그

질문:

2013년 1월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by