How to generate reverse function
Ältere Kommentare anzeigen
Write a matlab function called myReverseFunction. This function should accept
one vector as input parameter and return one vector as output parameter. This function should reverse the
location of elements from left to right. You should define a vector and call myReverseFunction.
Example: Example:
My vector is 1,3,5,7,6,11,22
Function returns 22,11,6,7,5,3,1
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 8 Feb. 2021
0 Stimmen
Hint: use the fliplr() function.
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!