Put vectors with different length into NaN vectors with allways the same length
6 visualizaciones (últimos 30 días)
I have a lot of data vectors wich have a different length. I want to compare them, to do so i have to normalize them. To normalize they need to have the same length.... So i wrote a loop to put the data vectors into a NaN-vector which has allways the same length.
My Problem is that the loop need pretty long depending on the size of 44100 NaN positions:
[x,Fs] = audioread("Lisa_Tones/Pü(1).wav")
Fs = 44100
V1 = NaN(Fs,1)
for i= 1:length(x)
V1(i,1) = x(i,1)
Is there an option to do that much faster ? Or is there another way to fill the data vectors with NaN so they have the same length?