Dividing equally a vector matlab -


in mfccs have specified f_low , f_high frequency min , max bands, , compute n equally distanced mel values between these 2 frequency values. wrote

f_low=1000;   f_high=fs/2; filt_num=26;  % number of filters stp=round(f_high/filt_num); % step  f=f_low:stp:f_high; % frequency vector 

but can't divide equally f vector, maybe there function in matlab , or missing something? please , in advance.

a bit of digging around leads me believe want linearly spaced vector filt_num entries, starting @ f_low , ending @ f_high. should use linspace follows:

f = linspace(f_low,f_high,filt_num); 

this same last 2 lines of code. keep in mind code works when f_high larger f_low. linspace not have issue, supports descending vectors.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -