Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
PI Controller random values
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Risposte (1)
Image Analyst
il 12 Apr 2013
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 Commento
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!