Flip the y-axis values?

6 vues (au cours des 30 derniers jours)
SuzieChan
SuzieChan le 12 Avr 2020
Hi,
Is it possible to 'flip' or 'reverse' the y-axis values so they show in opposite order?
For some reason, Matlab puts 1` at the top of the y-axis, down to 0 in descending order.
Can I make the y-axis show 0 at the top, and 1 at intersection with the x-axis?
(reasoning: 0 represents ground level, and 1 represents 1 meter below ground level).

Réponse acceptée

Mehmed Saad
Mehmed Saad le 12 Avr 2020
set(gca,'YDir','reverse')

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by