Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

PI Controller random values

1 Ansicht (letzte 30 Tage)
Sreet Swastik
Sreet Swastik am 11 Apr. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 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?

Antworten (1)

Image Analyst
Image Analyst am 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 Kommentar
Image Analyst
Image Analyst am 13 Apr. 2013
Kp = 1 + 9 * rand(1, 30)
Ki = 1 + 4 * rand(1, 30)

Diese Frage ist geschlossen.

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by