comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirdata/gettmp.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function [tmp y] = gettmp(x,y)
2
3 idx = get(x,'TmpIdx')+1;
4 tmps = get(x,'InterChunk');
5 if idx > length(tmps)
6 tmp = [];
7 else
8 tmp = tmps{idx};
9 end
10 if nargin<2
11 y = x;
12 end
13 y = set(y,'InterChunk',tmps,'TmpIdx',idx);