Specify the path of X and Y axis (MATLAB)
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Scott MacKenzie
2021-10-23
After your plot command, add
set(gca, 'xlim', [0 1], 'ylim', [0 1]);
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!