Borrar filtros
Borrar filtros

How to know what the stimulus is playing with randomizing the files

4 visualizaciones (últimos 30 días)
steamrice
steamrice el 3 de Mzo. de 2020
Respondida: steamrice el 3 de Mzo. de 2020
Hello there,
I am acessing the file for some sounds file for stimulus. I play them by randoming each trail. However, for analysis purpose, I'd like to know which sound was played as well. Is there a way to do that? Here is what I have for this
%StartofExperiment%
Sounds='C:\Users\Desktop\data';
fil = fullfile(Sounds,'*.wav');
d = dir(fil);
fnames={d.name};
number_of_trials=numel(d);
shuffleOrder = randperm(number_of_trials);
Thanks so much for your time,

Respuestas (1)

steamrice
steamrice el 3 de Mzo. de 2020
Anyone? Thanks!

Categorías

Más información sobre Install Products en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by