I have different answer using 'norm'. Do I miss something?

A = [1 2; 3 4];
norm(A) >> 5.4650
But equivalently,
sqrt(1^2 + 2^2 + 3^2 + 4^2) >> 5.4772
the answer is different
Do I miss something? thx!

 采纳的回答

norm(A) and norm(A,'fro') are different things.
Best wishes
Torsten.

3 个评论

@penyao lu: the best way for you to say "thank you" is to accept Torsten's answer.
thx for your remind! Stephen.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by