Azzera filtri
Azzera filtri

Problem with AudioDataCollection function

1 visualizzazione (ultimi 30 giorni)
Veton Kepuska
Veton Kepuska il 18 Apr 2019
Risposto: Veton Kepuska il 22 Apr 2019
I have created a MALTAB script called AudioDataCollection.m. This file executes perfectly.
However, whenver I transform this script into a function by setting
>>function AudioDataCollection(T)
I will get this error
>>
Undefined function or variable 'audioIn'.
Error in AudioDataCollection (line 36)
myx = audioIn();
<<
I have tryed many things unsucesfully. hence I need your help. Can you you help me:

Risposte (1)

Veton Kepuska
Veton Kepuska il 22 Apr 2019
I already solved this problem. It was undelcared function use, corrected by the foloiwng line of code:
audioIn = audioDeviceReader('SampleRate',fs, ...
'SamplesPerFrame',floor(fs/20));
Thanks
Veton

Categorie

Scopri di più su Manage Products in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by