Problem 233. Reverse the vector
63.42% Correct | 36.58% Incorrect
Last Solution submitted on May 30, 2023
Show 5 older comments
Ned Gulley on 2 Feb 2012
Added some more tests.
Nicholas Howe on 13 Apr 2012
Test set needs a column vector.
Kristin on 18 May 2012
As far as timing goes ...
Elapsed time is 0.068947 seconds.
Elapsed time is 0.000026 seconds.
Muhammad M Sahari on 20 Dec 2016
Nicholas Bitler on 26 Nov 2020
thanks Kristin but I got it on my own
Roberto DADDA on 9 Dec 2020
I'm not understanding why sort(x, 'descend') is not correct. On matlab works.
Isabella Stellitano on 26 Oct 2021
Gizem Deniz Akkas on 18 Apr 2022
function y = rev(x)
i'm doing like this but i have 1 assertion error ? what's wrong?
Solution CommentsShow comments
Problem Recent Solvers11353
Set some matrix elements to zero
Remove element(s) from cell array
More from this Author1
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!