ADACS-Australia / NDRI-IMOS

Other
0 stars 0 forks source link

function to generate output file name in format same as Sasha does in Matlab #9

Closed MartinCupak closed 2 months ago

MartinCupak commented 3 months ago

Matlab code:

tvec = datevec(Start_times.time(n));
s1 = num2str(tvec(1));
s2 = num2str(tvec(2));
if length(s2) < 2
    s2 = ['0',s2];
end
s3 = num2str(tvec(3));
if length(s3) < 2
    s3 = ['0',s3];
end
s4 = num2str(tvec(4));
if length(s4) < 2
    s4 = ['0',s4];
end
s5 = num2str(tvec(5));
if length(s5) < 2
    s5 = ['0',s5];
end
s6 = num2str(tvec(6));
if length(s6) < 2
    s6 = ['0',s6];
end
wavfilename = ['Set',num2str(setID),'_',s1,s2,s3,'_',s4,s5,s6,'.wav'];
MartinCupak commented 2 months ago

done, commit d6acaa3e38f53f5e8a0a409109c6f7c98092bcec tested in commit d710ffa356253e25371b9ee4af6005864668322b