MATLAB : display 3 or more spectrograms side by side
For the sake of visualisation, i need to randomly display from 3 to 6
spectrograms in Matlab. I have an array of 800 vectorized wav files, i am
randomly picking 3 of them, and want them to pop up in a figure showing
the spectrograms of each side-by-side:
load('training_set.mat');
m = size(X, 1);
% Randomly select 3 wavs
rand_indices = randperm(m);
sel = X(rand_indices(1:3), :);
I am very new to Matlab and i did try to write a for loop which takes each
sample out of "sel" and generates a spectogram for it, but i didn't
achieve any result. ( i use the specgram function).
No comments:
Post a Comment