フィルターのクリア

Hold on Is not Working

1 回表示 (過去 30 日間)
Gözde Üstün
Gözde Üstün 2020 年 7 月 8 日
コメント済み: madhan ravi 2020 年 7 月 8 日
Hello,
my x axis is (which is name is values_x)here:
0.9000 0.9500 0.9600 0.9700 0.9800 0.9900 0.9977 0.9978 0.9979 0.9980 0.9990 1.0000
My first y value is here:
NaN
NaN
NaN
NaN
NaN
NaN
0.3956
0.3958
0.3960
0.3962
0.3976
0.3986
My second y value is here:
-0.2059
-0.0361
0.0081
0.0588
0.1196
0.1998
0.3024
0.3045
0.3067
0.3089
0.3351
0.3986
And I am using this code:
figure(1)
plot(values_x,y1)
hold on
plot(values_x,y2)
hold off
I can see my graphs separetly but I can not see on the one graph
How can I solve this problem

採用された回答

madhan ravi
madhan ravi 2020 年 7 月 8 日
編集済み: madhan ravi 2020 年 7 月 8 日
figure(1)
yyaxis left
plot(values_x,y1) % different scaling will make them visible
yyaxis right
plot(values_x,y2)
  2 件のコメント
Gözde Üstün
Gözde Üstün 2020 年 7 月 8 日
編集済み: Gözde Üstün 2020 年 7 月 8 日
Thank you very much but this time I have that:
The blue line does not seems very well. Is there any way to make it better. Because normally blue one is also important result for me and could x axis be written with detailed
madhan ravi
madhan ravi 2020 年 7 月 8 日
xlim([.9, 1.5])

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by