source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/@sdpvar/islinear.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 708 bytes
Line 
1function sys=islinear(x)
2%ISLINEAR Check if variable is linear       
3%
4% p = islinear(X)
5%
6% X : SDPVAR object
7% p : boolean 0/1
8
9% Author Johan Löfberg
10% $Id: islinear.m,v 1.2 2004/07/02 08:17:29 johanl Exp $ 
11
12try
13    sys = is(x,'linear');
14catch
15    disp('I have messed up something internally in YALMIP. Sorry...')
16    disp('Type yalmip(''clear'') and re-define the problem.');
17    disp(' ')
18    disp('This problem typically occurs if you have SDPVAR variables in');
19    disp('work-space, and call a function where you are using ')
20    disp('the command yalmip(''clear''). When control is returned to');
21    disp('the work-space, things are messed up...');
22    error('Internal problems in YALMIP');
23end
Note: See TracBrowser for help on using the repository browser.