For a square matrix x, what is the difference between norm(x,2) and norm(x,'fro')? My understanding is that they should be the same, but when I try the example below, they are different. What equation is used for both?

1 view (last 30 days)
x = [1,2,3;4,5,6;7,8,9]
norm(x,2)
norm(x,'fro')

Answers (1)

the cyclist
the cyclist on 22 May 2013
Edited: the cyclist on 22 May 2013
They are not equal. A quick web search suggests to me that:
norm(x,2) = sqrt(sum(x(:).*x(:)))
norm(x,'fro') = sqrt(max(eig(x'*x)))
If this is "mission-critical" for you, don't just take my word for it.

Categories

Find more on Dynamic System Models in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!