Info
この質問は閉じられています。 編集または回答するには再度開いてください。
PI Controller random values
3 ビュー (過去 30 日間)
古いコメントを表示
I want to generate 30 random values for Kp & Ki where Kp's range is between 1 and 10, Ki's range is between 1 and 5.. How do I do that?
1 件のコメント
回答 (1 件)
Image Analyst
2013 年 4 月 12 日
Did you look up rand() in the help? What you ask is the very first example:
Example 1
Generate values from the uniform distribution on the interval [a,b]:
r = a + (b-a).*rand(100,1);
1 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!