Next Post:

Indexing The Number Of Elements Of A Vector In MatLab(Illustrated Expression)

Calculation Of Euclidean Norm Of Vectors In MatLab(Illustrated Expression)


In some vector mechanics calculations or various kinds of mathematical calculations, the norms of vectors could be required. In Matlab, you can calculte and index the Euclidean norms of vectors. In this article, we will show you how to index the Euclidean norms of vectors with ‘norm()’ command in Matlab with a very basic example below.

How To Use The ‘norm()’ Command In Matlab?

The use of ‘norm()’ command in Matlab.

For example, we created a vector that has three elements called ‘a’ as shown by green arrow above in Matlab. We calculated the Euclidean norm of this vector with norm() command by simply type the variable ‘a’ inside the norm() as shown by blue arrow. The calculation is done with this calculation; the root of 4^2+1^2+5^2. This is the general rule of Euclidean norm.

Also you can do mathematical calculations with norm() function as shown by red arrows above in Matlab.

The use of norm() command to calculate Euclidean norms of vectors in Matlab is very simple like above. Leave your comments and questions below about ‘norm()’ command in Matlab!

  • Site Comments

At least 10 characters required.