Mercurial > hg > camir-aes2014
annotate 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 |
rev | line source |
---|---|
wolffd@0 | 1 function [tmp y] = gettmp(x,y) |
wolffd@0 | 2 |
wolffd@0 | 3 idx = get(x,'TmpIdx')+1; |
wolffd@0 | 4 tmps = get(x,'InterChunk'); |
wolffd@0 | 5 if idx > length(tmps) |
wolffd@0 | 6 tmp = []; |
wolffd@0 | 7 else |
wolffd@0 | 8 tmp = tmps{idx}; |
wolffd@0 | 9 end |
wolffd@0 | 10 if nargin<2 |
wolffd@0 | 11 y = x; |
wolffd@0 | 12 end |
wolffd@0 | 13 y = set(y,'InterChunk',tmps,'TmpIdx',idx); |