Input array in if else statement
Mostrar comentarios más antiguos
Hi.. actually i want to design energy controller that using if else stetment but in continuosly way.. using input array..but i dont know where to start about can somebody help me?
Respuestas (1)
Walter Roberson
el 5 de Dic. de 2016
You probably want to learn about logical indexing. For example,
mask = U1 < 17.82;
U2(mask)= U1(mask) * 3.8;
U2(~mask) = U1(~mask) - 1.29;
Categorías
Más información sobre MATLAB Parallel Server en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!