Have you a registration already ? Sign In
Indexing The Number Of Elements Of A Vector 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.
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!
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Write Comments