Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

PI Controller random values

1 visualización (últimos 30 días)
Sreet Swastik
Sreet Swastik el 11 de Abr. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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?

Respuestas (1)

Image Analyst
Image Analyst el 12 de Abr. de 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 comentario
Image Analyst
Image Analyst el 13 de Abr. de 2013
Kp = 1 + 9 * rand(1, 30)
Ki = 1 + 4 * rand(1, 30)

La pregunta está cerrada.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by