annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirdata/log.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 y = log(x)
wolffd@0 2
wolffd@0 3 d = get(x,'Data');
wolffd@0 4 e = cell(1,length(d));
wolffd@0 5 l = get(x,'Name');
wolffd@0 6 m = cell(1,length(l));
wolffd@0 7
wolffd@0 8 for i = 1:length(d)
wolffd@0 9 e{i} = cell(1,length(d{i}));
wolffd@0 10 for j = 1:length(d{i})
wolffd@0 11 e{i}{j} = log(d{i}{j});
wolffd@0 12 end
wolffd@0 13 m{i} = ['log_' l{i}];
wolffd@0 14 end
wolffd@0 15 y = set(x,'Data',e,'Name',m);