필터 지우기
필터 지우기

Problem with AudioDataCollection function

조회 수: 1 (최근 30일)
Veton Kepuska
Veton Kepuska 2019년 4월 18일
답변: Veton Kepuska 2019년 4월 22일
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:

답변 (1개)

Veton Kepuska
Veton Kepuska 2019년 4월 22일
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

카테고리

Help CenterFile Exchange에서 Manage Products에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by