What is the reason behind the difference in Results?
math, matlab
Solution
As defined in Matlab help for norm, the returned value is "The largest singular value" for matrices, and `sum(abs(A).^2)^(1/2)` for vectors.
Additional reading: wikipedia - matrix norm
Problem
let `x = [1 2 3;4 5 6]` then why `norm(x,2)` is different from `norm(x(:),2)` `norm(x,2) = 9.5080` and `norm(x(:),2)=9.5394`. I have run this program in Matlab R2012a.