source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@ndsdpvar/end.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 383 bytes |
Line | |
---|---|
1 | function index = end(X,position,numindices) |
2 | %END (overloaded) |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: end.m,v 1.1 2006/07/13 19:40:59 joloef Exp $ |
6 | |
7 | if nargin == 2 |
8 | index = X.dim(position); |
9 | else |
10 | if numindices == 1 |
11 | index = prod(X.dim); |
12 | elseif numindices == length(X.dim) |
13 | index = X.dim(position); |
14 | else |
15 | error('Indexing logic not supported yet'); |
16 | end |
17 | end |
Note: See TracBrowser
for help on using the repository browser.