source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@ndsdpvar/size.m @ 37

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

Added original make3d

File size: 371 bytes
Line 
1function s = size(X,d)
2% SIZE (overloaded)
3
4% Author Johan Löfberg
5% $Id: size.m,v 1.2 2006/07/25 12:57:08 joloef Exp $
6
7if nargin == 1
8    s = X.dim;
9else
10    if (d < 1) | d~=round(d)
11        error('Dimension argument must be a positive integer scalar in the range 1 to 2^31.');
12    end
13    if d <= length(X.dim)
14        s = X.dim(d);
15    else
16        s = 1;
17    end
18end
Note: See TracBrowser for help on using the repository browser.