フィルターのクリア

How to acquire external sensor data via USB with MATLAB Mobile

7 ビュー (過去 30 日間)
Robin Gebbers
Robin Gebbers 2024 年 5 月 10 日
回答済み: Suraj 2024 年 7 月 18 日 3:55
I would like to record data from an external microphone which is connected to the USB port of an Android smartphone.
At the same time, GPS data should be recorded.
MATLAB Mobile offers easy access to the internal sensors of the Android smartphon but I cannot find an option to access external sensors / the USB interface.
Are there solutions?

回答 (1 件)

Suraj
Suraj 2024 年 7 月 18 日 3:55
Hey Robin,
From my usage of MATLAB Mobile, I can see that it recognizes individual internal microphones on the device, as well as external peripherals. I was able to record audio from my bluetooth headset using "mobiledev" function.
I followed the below example,
You can select the microphone of your choice from the MATLAB Mobile app by navigating to Sensors > Sampling Parameters > Microphone, and selecting from the list of available microphones. You can even do this programmatically by running,
m.SelectedMicrophone = m.AvailableMicrophones{1} % Change the index according to the list of available mics
If other apps on your Android device can recognize your USB mic, then so should MATLAB.
I hope this helps!

カテゴリ

Help Center および File ExchangeMATLAB Mobile についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by