Info

此问题已关闭。 请重新打开它进行编辑或回答。

PI Controller random values

1 次查看(过去 30 天)
Sreet Swastik
Sreet Swastik 2013-4-11
关闭: MATLAB Answer Bot 2021-8-20
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
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);

此问题已关闭。

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by