how to convert mat file of impulse signal to wavefile?

2 vues (au cours des 30 derniers jours)
규호
규호 le 31 Jan 2023
Commenté : 규호 le 31 Jan 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 ?

Réponses (1)

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

Catégories

En savoir plus sur Measurements and Feature Extraction dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by