Info
この質問は閉じられています。 編集または回答するには再度開いてください。
What should be the coding for the problem mentioned?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I have an input y whose value keeps changing for different iteration and y is being fed to two parameters namely r and R. Now I'm trying to get a piece of coding doing which, when the value of y changes, values of r and R must also change. Please help me.
0 件のコメント
回答 (1 件)
Image Analyst
2014 年 5 月 21 日
Something like this
for k = 1 : 10
y = rand(1); % Or however you get y to change
r(k) = Function1(y);
R(k) = Function2(y);
end
We don't know how r and R change with y so you'll have to write those functions.
10 件のコメント
Image Analyst
2014 年 5 月 22 日
Like I said, I don't have Simulink so this is nothing I can help you with. Hopefully someone else will answer. You didn't add the Simulink product to the Products list so you might have already lost some potential answerers. I'll add it for you.
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!