PI Controller random values
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
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 件)
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 件のコメント
Image Analyst
2013 年 4 月 13 日
Kp = 1 + 9 * rand(1, 30)
Ki = 1 + 4 * rand(1, 30)
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!