source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/issymmetric.m
Last change on this file was 37, checked in by , 14 years ago | |
---|---|
File size: 275 bytes |
Line | |
---|---|
1 | function issym=issymmetric(X) |
2 | %ISSYMMETRIC Check if variable is symmetric |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: issymmetric.m,v 1.2 2004/07/02 08:17:31 johanl Exp $ |
6 | |
7 | [n,m] = size(X); |
8 | issym = 0; |
9 | |
10 | if (n==m) |
11 | issym = norm(X-X',1)<1e-10; % Should be scaled with size maybe |
12 | end |
13 | |
14 | |
15 |
Note: See TracBrowser
for help on using the repository browser.