フィルターのクリア

I am not getting correct plot

3 ビュー (過去 30 日間)
nune pratyusha
nune pratyusha 2022 年 6 月 18 日
回答済み: Ishu 2023 年 10 月 26 日
for plotting purpose i am using draw now() command because without draw now() plot is not coming.
But plot is not looks good and it's doesn't shown desired output.
please help me i need below type of plots
  4 件のコメント
KSSV
KSSV 2022 年 6 月 21 日
How to call the function? Which function to run? How did you run the code? What is the input?
nune pratyusha
nune pratyusha 2022 年 6 月 21 日
you have to run_LE_FO_p1 this file
LE_RF_FO_p1 and FO_Lyapunov_p1 both files are function files

サインインしてコメントする。

回答 (1 件)

Ishu
Ishu 2023 年 10 月 26 日
Hi Nune Pratyusha,
I understand that you are trying to plot a 2D graph.
To plot a 2D graph you can use "plot()" function. And the "drawnow()" function is just to see the updates immediately on the screen. It will not have any effect on the resulting graph.
And as you can see you are using "p1 range" for the x-axis and the "p1" are from 1.1 to 1.3, but in the given screenshot x range is from 1-10. And coming to y-axis, in the given screenshot there are 5 "LEs", but you are plotting just the 3 "LEs" and those "LEs" values also does not seem to match with screenshot values.
It is just that the x-axis and y-axis values does not seem to be correct. And to plot all the 5 "LEs" you can plot the "LEs" one after the other and can make use of "hold on" to plot all the "LEs" on the same axes.
For more information on "plot()" function you can refer below MathWorks doumentation:
For more information on "drawnow()" you can refer below documentaion:
And for more information on "hold on" please refer:
Hope it helps.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by