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!

 Respuesta aceptada

Torsten
Torsten el 15 de Ag. de 2017
norm(A) and norm(A,'fro') are different things.
Best wishes
Torsten.

3 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 15 de Ag. de 2017

Comentada:

el 15 de Ag. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by