Plot step response w/ smallest rise time, dependant on Kp & Kd constraints, assuming lowest natural freq.
7 views (last 30 days)
Show older comments
Hi all,
So I am designing a PD controller and need to plot the following system taking into account the following constraints.
Transfer function -> -1 / -s^2 + 1*s + 2
Damping ratio -> 0.4-0.6
Kp & Kd constraints ->
My question involves the required code to plot the step response with the smallest rise time when Kp & Kd are selected from the area shown on the graph, whilst assuming the lowest natural frequency.
Following are two sections of code I have attempted and the results I produced:
This graph suggests that I need pole placement as described here:
How would I apply this proper pole placement within my code to allow for the correct step response to be plotted?
Thanks all!
0 Comments
Answers (1)
Sebastian Castro
on 11 Apr 2015
To get the rise time for your system, you can always use the stepinfo function. The output of this function will, among other things, return your rise time. So, for different systems, you can record that rise time:
>> s = stepinfo(sys)
>> tr = s.RiseTime;
- Sebastian
0 Comments
See Also
Categories
Find more on Classical Control Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!