I obtain a response curve for my non-linear controller design on Simulink, and I am only able to obtain just the rise time and overshoot using 'Bilevel measurements' on the response curve tab in Simulink. Thus, I import this curve onto MATLAB using the following command in Command window:
plot(simout.Time,simout.Data)
After using the above code, I did obtain the same response curve in MATLAB as obtained in Simulink. But when I right click on the Figure in order to look for 'Characteristics-->Rise Time, settling time etc', this feature seems disabled i.e., I try to right click and nothing appears after I have imported the curve in MATLAB from Simulink.
Unlike when we have a transfer function (tf) defined in the command window, and then we type 'step' to obtain the response curve. Thus, on this figure when we right click, we can select characteristics--> rise time and other parameters.
I would be grateful if I can be assisted on how to obtain the system characteristics from a non-linear system's response curve.
Thank you.
CodePudding user response:
I think the data that is shown in the figure generated with the "step" command comes from the "stepinfo" command.
For this case, you can use the stepinfo command with the time and output vector. See Mathworks example. The command will be like:
stepinfo(simout.Time,simout.Data,STEADYSTATE_TIME)