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

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
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);