- Define range of Kp and Ki values in the form of a vector
- Initialize arrays to store the performance metrics (rise time, settling time and overshoot)
- Loop over all combinations of Kp and Ki values, simulate your system using ‘sim’ function and calculate the performance metrics for the system
- Create the contour plot using the ‘contourf’ function for all performance metrics
draw contour graph of rise time, settling time, and overshoot with sampling of Kp and Ki.
1 次查看(过去 30 天)
显示 更早的评论
find the optimal value of Kp and Ki. 0 < 𝐾𝑝 ≤ 30 & 0 < 𝐾𝑖 ≤ 30
0 个评论
回答(1 个)
Rijuta
2023-2-24
Hi,
I understand that you are trying to draw a contour graph. Please refer to the below mention steps to create a contour graph.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!