How to find the magnitude of a vector in Matlab

preview_player
Показать описание
How do you find the magnitude of a vector using Matlab?

Using the function 'norm', Matlab is able to calculate the magnitude of a vector in one step.

An example for the syntax of the function norm is: norm(r), this will return the value of the magnitude of vector r.
Рекомендации по теме
Комментарии
Автор

thank you, not sure why people make it so complicated to find a vector. easy answer

thebirdman
Автор

Thanks a lot. Now its very easy. But how can we find magnitude of a matrix? Is it determinant? like >>A=[1 2 3;4 5 6;7 8 9]; >>det(A)

sadiq