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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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