draw contour graph of rise time, settling time, and overshoot with sampling of Kp and Ki.

2 ビュー (過去 30 日間)
Matlab0000
Matlab0000 2022 年 11 月 18 日
回答済み: Rijuta 2023 年 2 月 24 日
find the optimal value of Kp and Ki. 0 < 𝐾𝑝 ≤ 30 & 0 < 𝐾𝑖 ≤ 30

回答 (1 件)

Rijuta
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.
  • 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
For more information on contour graphs, refer to the following examples.

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by