Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the reason behind the difference in Results?

Tags:

math

matlab

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.

like image 819
Deepak kumar Jha Avatar asked Jul 04 '12 14:07

Deepak kumar Jha


People also ask

Why do experiments have different results?

The two main reasons that your results might not match up each time are uncontrolled conditions and experimental error. Uncontrolled conditions will likely influence your results because you haven't controlled for all of the variables that affect your experiment.

What are the reasons of result?

A reason-result relation is a causal relation in which the propositions express an event or state that brings about another event or state. The result occurs regardless of human intention or nonintention. Examples: He was sick, so he stayed home.

What is the difference between research results and findings?

Answer: Generally speaking, there is no real difference between the two. In most papers, they are used interchangeably. However, it helps to be consistent throughout the paper.

What is the difference between results and discussion?

The results chapter or section simply and objectively reports what you found, without speculating on why you found these results. The discussion interprets the meaning of the results, puts them in context, and explains why they matter.


2 Answers

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

like image 62
Yanai Ankri Avatar answered Sep 27 '22 22:09

Yanai Ankri


x(:) is a vector, see what Matlab returns if you simply type that at the command-line. x is a matrix. The 2-norm of a matrix and the 2-norm of a vector are calculated in different ways, in general the 2-norm of the vector of the elements of an array will not be the same as the 2-norm of the array. For details see good old Golub and Van Loan.

Why are the 2-norms of matrices and arrays different ? That's maths and therefore off-topic here on SO so I daren't answer.

like image 40
High Performance Mark Avatar answered Sep 27 '22 20:09

High Performance Mark