norm(A) returns the
2-norm of matrix A. Because
symbolic variables are assumed to be complex by default, the norm can contain unresolved
calls to conj and abs.
Use vpa to approximate the result with 20-digit accuracy:
vpa(norm2, 20)
ans =
0.28867513459481288225
Effect of Assumptions on Norm
Compute the norm of [x y] and simplify the result.
Because symbolic scalar variables are assumed to be complex by default, the calls to
abs do not simplify.
syms x y
simplify(norm([x y]))
ans =
(abs(x)^2 + abs(y)^2)^(1/2)
Assume x and y are real, and repeat the
calculation. Now, the result is simplified.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.