Scilab 5.3.0
- Scilab Online Help
- Elementary Functions
- Discrete mathematics
- Floating point
- Integer representation
- Trigonometry
- abs
- amell
- and
- &
- binomial
- bitand
- bitor
- bloc2exp
- bloc2ss
- cat
- cell2mat
- cellstr
- char
- cumprod
- cumsum
- delip
- diag
- diff
- dsearch
- exp
- eye
- flipdim
- gsort
- imag
- imult
- ind2sub
- intersect
- inttrap
- isdef
- isempty
- isequal
- isequalbitwise
- isreal
- isvector
- kron
- lex_sort
- linspace
- log
- log10
- log1p
- log2
- logm
- logspace
- lstsize
- max
- meshgrid
- min
- modulo
- ndgrid
- ndims
- nextpow2
- norm
- ones
- or
- |
- pen2ea
- permute
- pertrans
- prod
- rand
- real
- resize_matrix
- setdiff
- sign
- signm
- size
- solve
- sqrt
- sqrtm
- squarewave
- ssrand
- sub2ind
- sum
- sysconv
- sysdiag
- syslin
- toeplitz
- trfmod
- trianfml
- tril
- trisolve
- triu
- typeof
- union
- unique
- vectorfind
- zeros
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
norm
matrix norms
Calling Sequence
[y]=norm(x [,flag])
Arguments
- x
real or complex vector or matrix (full or sparse storage)
- flag
string (type of norm) (default value =2)
Description
For matrices
- norm(x)
or
norm(x,2)
is the largest singular value ofx
(max(svd(x))
).- norm(x,1)
The l_1 norm
x
(the largest column sum :max(sum(abs(x),'r'))
).- norm(x,'inf'),norm(x,%inf)
The infinity norm of
x
(the largest row sum :max(sum(abs(x),'c'))
).- norm(x,'fro')
Frobenius norm i.e.
sqrt(sum(diag(x'*x)))
For vectors
- norm(v,p)
l_p norm (
sum(v(i)^p))^(1/p)
.- norm(v)
=norm(v,2)
: l_2 norm- norm(v,'inf')
max(abs(v(i)))
.
Examples
<< nextpow2 | Elementary Functions | ones >> |