source: MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/matrixnorms.m

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 
1function pass = matrixnorms
2
3% Nick Trefethen  31 May 2008
4% This matrix should have all norms equal to 1
5
6x = chebfun(1,[0 1]);
7A = [0*x 0*x 0*x x 0*x];
8norms = zeros(4,1);
9norms(1) = norm(A,1);
10norms(2) = norm(A,2);
11norms(3) = norm(A,inf);
12norms(4) = norm(A,'fro');
13pass = (norm(norms-ones(4,1))==0);
Note: See TracBrowser for help on using the repository browser.