Plots Limits in Matlab

6 ビュー (過去 30 日間)
Shahad Alomani
Shahad Alomani 2020 年 11 月 26 日
回答済み: Ameer Hamza 2020 年 11 月 26 日
Hi,
I want the X asis to plot from 1 to -1 and I tired to do xlim[(1 -1)] and -1 to 1 It didn't work, I want i to start from 1 and end in -1 which is reverse than normal plots what I got it from -1 to 1 on te plot?

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 26 日
You need to set xdir property to 'reverse'
xlim([-1 1])
set(gca, 'xdir', 'reverse')

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by