Different norms for different functions
9 views (last 30 days)
Show older comments
I am wondering why functions such as 'rcond' rely on a different norm of computation than the default value of the function 'norm'. Moreover, I am also wondering why the default output of 'norm' is the spectral norm. What is the intuition/practicality behind this?
0 Comments
Answers (1)
Ameer Hamza
on 21 May 2018
MATLAB provides the option to use cond to calculate a different-norm condition number. According to the documentation difference between rcond() and cond() lies in their implementation. rcond() is more efficient of the two, but less reliable.
As for the choice of L2-norm as default output for norm() function, I think it has to do with the widespread use of L2 norm. For example, the Euclidean distance between two vectors, similarly the least square error problems also use L2-norm between predicted and actual dataset. Other types of norms are not as common and intuitive as L2 norm. Therefore it make sense to set it as the default value for MATLAB's norm() function.
0 Comments
See Also
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!