How can I flip a row vector without using flip(lr) function?
Ältere Kommentare anzeigen
I want to write a function that it can flip a row vector without flip(lr) function.
if true
% A=[1 2 -3 4]
And output must be:
B=[4 -3 2 1]
end
Akzeptierte Antwort
Weitere Antworten (3)
Walter Roberson
am 4 Nov. 2018
B = flipud(A.').';
Saad
am 15 Okt. 2022
0 Stimmen
how to conver a matrix without using (flip function's)?for example
a= 1 2 3 4 b=4 3 2 1
5 6 7 8 8 7 6 5
9 10 11 12 12 11 10 9
13 14 15 16 16 15 14 13
Kategorien
Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!