Hello all,
Im new to Simulink and Matlab, and im tring to improve my skilles with Controler planning using Simulink. Im working on a DC motor PID control.
For instent, Im tring to play with the PID set up and get: Rise time, O.S, Settling time and etc.
I was thinking about adding a 'Matlab function' block and there write the code giving me the proper data im looking for:
When I open the block I see the following:
- How do I write the code so I would run a loop examning all the input signal. I tried to run a for loop u= 0:0.0001:5 and ask if it pass the yss value and then raise a flag. Unfortently, I didnt managed to comare the complex value of the signal to yss.
- I will be glad to here tips what is the most efftion way to run it.
Thanks very much.