Problem 233. Reverse the vector
Added some more tests.
Test set needs a column vector.
As far as timing goes ...
Elapsed time is 0.068947 seconds.
Elapsed time is 0.000026 seconds.
thanks Kristin but I got it on my own
I'm not understanding why sort(x, 'descend') is not correct. On matlab works.
function y = rev(x)
i'm doing like this but i have 1 assertion error ? what's wrong?
Solution CommentsShow comments
Problem Recent Solvers11373
Convert a numerical matrix into a cell array of strings
Get the elements of diagonal and antidiagonal for any m-by-n matrix
Try 1.5.4: Celsius to Fahrenheit
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
More from this Author1
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!