I converted a WAV file into a vector in matlab wsing the "audioread" function. Running into an out of memory error when using the "wvd" function on the same vector. How to get rid of the error and get the plot? I'm using i7 processor with 32GB RAM. Execute the following script to reproduce the error: load handel.mat filename = 'handel.wav'; audiowrite(filename,y,Fs); clear y Fs [y,Fs] = audioread('handel.wav'); wvd(y)
John Michell answered .
2025-11-20
load handel.mat
filename = 'handel.wav';
audiowrite(filename,y,Fs);
[y,Fs] = audioread('handel.wav');
wvd(y,'smoothedPseudo',hamming(601),rectwin(305), 'NumTimePoints',310,'MinThreshold',-50) % specify NumTimePoints to reduce the degree of oversampling of WVD