Mercurial > hg > ltpda
comparison m-toolbox/classes/@data3D/getDz.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % GETDZ Get the property 'dz'. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: Get the property 'dz'. | |
5 % | |
6 % CALL: val = obj.getDz(); | |
7 % val = obj.getDz(idx); | |
8 % val = obj.getDz(idx1, idx2); | |
9 % val = obj.getDz(1:10); | |
10 % val = obj.getDz(1,:); | |
11 % | |
12 % INPUTS: obj - must be a single data3D object. | |
13 % idx - index of the data samples | |
14 % | |
15 % VERSION: $Id: getDz.m,v 1.1 2011/03/21 15:47:49 mauro Exp $ | |
16 % | |
17 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
18 | |
19 function varargout = getDz(data,idx1,idx2) | |
20 | |
21 % get dz values | |
22 out = data.dz; | |
23 | |
24 % Decide if the user wants all data | |
25 switch nargin | |
26 case 2 | |
27 out = out(idx1); | |
28 case 3 | |
29 out = out(idx1, idx2); | |
30 end | |
31 | |
32 varargout{1} = out; | |
33 | |
34 end | |
35 |