You will be given Two matrices A and B.
Return 1 if B is the diagonal matrix of A, 0 otherwise
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*
851 Solvers
332 Solvers
158 Solvers
Flip the main diagonal of a matrix
426 Solvers
84 Solvers