How to use getaudiodata() in Simulink?

4 ビュー (過去 30 日間)
Ahmet Talha Köten
Ahmet Talha Köten 2022 年 6 月 1 日
回答済み: jibrahim 2022 年 6 月 6 日
I have this simple system and I would like to get audiodata just like in Matlab. I have this error: Undefined function or variable 'getaudiodata'. Simulink cannot determine sizes and/or types of the output for block 'matrixtosound/MATLAB Function' due to errors in the block body, or limitations of the underlying analysis. Error in port widths or dimensions. 'Output Port 1' of 'matrixtosound/MATLAB Function/u' is a [30×1] matrix.

回答 (1 件)

jibrahim
jibrahim 2022 年 6 月 6 日
Hi Ahmet,
To interact with a microphone device in Simulink, use the Audio Device Reader block:

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by