Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

PI Controller random values

1 vue (au cours des 30 derniers jours)
Sreet Swastik
Sreet Swastik le 11 Avr 2013
Clôturé : MATLAB Answer Bot le 20 Août 2021
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?

Réponses (1)

Image Analyst
Image Analyst le 12 Avr 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 commentaire
Image Analyst
Image Analyst le 13 Avr 2013
Kp = 1 + 9 * rand(1, 30)
Ki = 1 + 4 * rand(1, 30)

Cette question est clôturée.

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by