How to flip a line upside down?
Mostra commenti meno recenti
How can I flip this line upside down:

This is my code that may not need flipud() :
x = [1 2 3];
y = [2 2.5 3.5];
flipud(plot(x,y))
3 Commenti
Adam
il 2 Feb 2017
The result of the plot instruction is a handle to the graphics object which is a scalar 'Line' object. Flipping this will do nothing at all!
Ezz El-din Abdullah
il 2 Feb 2017
Because it is a line object. There is only one line. Of course, it depends what version of Matlab you are using. If you are < R2014b then it will simply be a 'magic' double which you can query for the line properties.
Take a look at the output of
h = plot( x, y )
on the command line and you will see what it is. It is an object containing many useful properties of the line - e.g. colour, width, x data, y data
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Graphics Object Properties in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
