Problem 42752. Matrix diagonalization
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
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*
Solution Comments
Show commentsProblem Recent Solvers39
Suggested Problems
-
Number of 1s in the Binary Representation of a Number
476 Solvers
-
Matrix with different incremental runs
579 Solvers
-
Generate N equally spaced intervals between -L and L
941 Solvers
-
Switch matrix to a column vector
372 Solvers
-
Write a function man that takes a row vector v and returns a matrix H as follows..
644 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!