Plots Limits in Matlab

3 visualizzazioni (ultimi 30 giorni)
Shahad Alomani
Shahad Alomani il 26 Nov 2020
Risposto: Ameer Hamza il 26 Nov 2020
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?

Risposta accettata

Ameer Hamza
Ameer Hamza il 26 Nov 2020
You need to set xdir property to 'reverse'
xlim([-1 1])
set(gca, 'xdir', 'reverse')

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by