How to make a matrix upside down?

4 vues (au cours des 30 derniers jours)
Rengin
Rengin le 26 Jan 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!

Réponse acceptée

Walter Roberson
Walter Roberson le 26 Jan 2016
B = flipud(A);

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by