Problem 943. "mirror" matrix
53.8% Correct | 46.2% Incorrect
Last Solution submitted on Mar 22, 2023
Aditya Deshpande on 17 Jul 2017
This problem was fun. I was able to find a better way to solve beat my own solution. Not the best way though. But lot better.
goc3 on 24 Mar 2021
@Alireza yarmohammadi: your comment was deleted as it revealed an answer to the problem.
In response to the question you asked, though, your function returns m, which is not the complete answer. The last line in your function displays the correct result, but assigns it to ans, not m.
Problem Recent Solvers523
First non-zero element in each column
Check if number exists in vector
More from this Author9
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!