MATLAB Answers

reverse of row in matlab

15 views (last 30 days)
If I have 23 columns and five rows like this
if true
% code
end
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
and I want is
if true
% code
end
5 4 3 2 1
5 4 3 2 1
5 4 3 2 1
If it is possible to do in matlab?

  0 Comments

Sign in to comment.

Accepted Answer

Fabio Barbosa
Fabio Barbosa on 6 Apr 2018
Use the flip function: https://www.mathworks.com/help/matlab/ref/flip.html?s_tid=doc_ta

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!