Last change
on this file was
17,
checked in by zhangj, 11 years ago
|
To have a stable version on the server.
|
-
Property svn:executable set to
*
|
File size:
303 bytes
|
Line | |
---|
1 | function pass = matrixnorms |
---|
2 | |
---|
3 | % Nick Trefethen 31 May 2008 |
---|
4 | % This matrix should have all norms equal to 1 |
---|
5 | |
---|
6 | x = chebfun(1,[0 1]); |
---|
7 | A = [0*x 0*x 0*x x 0*x]; |
---|
8 | norms = zeros(4,1); |
---|
9 | norms(1) = norm(A,1); |
---|
10 | norms(2) = norm(A,2); |
---|
11 | norms(3) = norm(A,inf); |
---|
12 | norms(4) = norm(A,'fro'); |
---|
13 | pass = (norm(norms-ones(4,1))==0); |
---|
Note: See
TracBrowser
for help on using the repository browser.