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 CenterFile Exchange에서 2-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