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일

1 개 추천

You need to set xdir property to 'reverse'
xlim([-1 1])
set(gca, 'xdir', 'reverse')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2020년 11월 26일

답변:

2020년 11월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by