Dear members,
When I tried to plot this figure, the axes are not the same. X axis start from 0 to 1 with path of 0.1 and that's what I want for Y axis that starts directly with 0.6. I want to change the Y axis as in the case of X one.
How can I do that please.

回答 (1 件)

Scott MacKenzie
Scott MacKenzie 2021 年 10 月 23 日

0 投票

After your plot command, add
set(gca, 'xlim', [0 1], 'ylim', [0 1]);

2 件のコメント

high speed
high speed 2021 年 10 月 23 日
@Scott MacKenzie I got the same problem. The axis values don't change
Scott MacKenzie
Scott MacKenzie 2021 年 10 月 23 日
Do you have >1 plot command? It might help if you post your code.

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

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2021 年 10 月 23 日

コメント済み:

2021 年 10 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by