I have a signal of 100ms. Fs = 8000 Hz. nbits = 16.
fs_orig = 44100;
nbits = 16;
[signal_orig,fs_orig,nbits]=wavread('oo.wav');
y=resample(signal_orig, 8000,44100);
z=y(1:800,1);
t=(0:1/8000:0.1-1/8000);
plot(t,z);xlabel('Time(s)');ylabel('Amplitude');
How many samples there are I calculated this way
N = fs(Hz)*duration(ms)/1000 N = 8000*100/1000 = 800 samples.
Want to know how i can calculate the length of one period in matlab? How can i see which frequencies are in the signal? The fundamental frequency of the period I can calculate by 1/Period time?