how to convert mat file of impulse signal to wavefile?

2 visualizaciones (últimos 30 días)
규호
규호 el 31 de En. de 2023
Comentada: 규호 el 31 de En. de 2023
fs=1000;
t= 0 :1/fs : 10;
impulse= t==2;
double(impulse)
plot(t,y);
save impulse.mat
Data = load('impulse.mat');
audiowrite('impulse.wav', Data.y, fs);
i want to make signal wave file about impulse signal
it is not working
how to convert ?

Respuestas (1)

Walter Roberson
Walter Roberson el 31 de En. de 2023
fs = 1000;
t = 0 : 1/fs : 10;
impulse = t==2;
audiowrite('impulse.wav', double(impulse), fs);

Categorías

Más información sobre Measurements and Feature Extraction en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by