running simulink model from matlab
2 ビュー (過去 30 日間)
古いコメントを表示
I am able to run the program in Matlab using >>sim ('PumpLocation');
but when I assign QQQ to a flow source (see pic1.JPG)
and use >>sim ('PumpLocation','QQQ','40') - it no longer works
0 件のコメント
回答 (1 件)
Sebastian Castro
2015 年 10 月 30 日
I don't see a picture attached. If the following doesn't answer your question, please ensure to attach something and I can take a look.
Is QQQ just a workspace variable that feeds into a flow source? If so, you can do:
>> QQQ = 40;
>> simout1 = sim('PumpLocation','StopTime','20', ... );
>> QQQ = 50;
>> simout2 = sim('PumpLocatiom','StopTime','20', ... );
- Sebastian
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!