You will be given Two matrices A and B.
Return 1 if B is the diagonal matrix of A, 0 otherwise
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers41
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
53351 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15806 Solvers
-
13683 Solvers
-
Back to basics 6 - Column Vector
1111 Solvers
-
Getting the indices from a vector
12241 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
You can't use isequal with double/float as in tests 1, 4 or 5.
See https://www.mathworks.com/matlabcentral/newsreader/view_thread/66553
You shouldn't...
Jean-Marie, sorry , i dont see what you're referring to/ i dont use isequal, i compare the difference to a tolerance
*the difference's norm*