Specify the path of X and Y axis (MATLAB)

4 Ansichten (letzte 30 Tage)
high speed
high speed am 23 Okt. 2021
Kommentiert: Scott MacKenzie am 23 Okt. 2021
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.

Antworten (1)

Scott MacKenzie
Scott MacKenzie am 23 Okt. 2021
After your plot command, add
set(gca, 'xlim', [0 1], 'ylim', [0 1]);
  2 Kommentare
high speed
high speed am 23 Okt. 2021
@Scott MacKenzie I got the same problem. The axis values don't change
Scott MacKenzie
Scott MacKenzie am 23 Okt. 2021
Do you have >1 plot command? It might help if you post your code.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Object Containers finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by