How to make a matrix upside down?

1 visualizzazione (ultimi 30 giorni)
Rengin
Rengin il 26 Gen 2016
Risposto: Walter Roberson il 26 Gen 2016
% Dear Users,
% I have such an matrix below:
A= [1;4;5;7];
% I want to make it upside down:
B= [7;5;4;1];
% Is there any shor cut to do it?
% Thanks!

Risposta accettata

Walter Roberson
Walter Roberson il 26 Gen 2016
B = flipud(A);

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices 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