source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@lmi/end.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 361 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 2004/06/17 08:40:04 johanl Exp $ |
6 | |
7 | switch numindices |
8 | case 1 |
9 | % User has written someting like X(end) |
10 | index = length(X); |
11 | case 2 |
12 | index = length(X); |
13 | otherwise |
14 | error('Indexation dimension cannot exceed 2'); |
15 | end |
16 |
Note: See TracBrowser
for help on using the repository browser.