How can I use "mobiledev" command in MATLAB desktop?

6 次查看(过去 30 天)
I am trying to write a code which is counting steps by acceleration data. I sourced this work: https://www.mathworks.com/help/matlabmobile/ug/counting-steps-by-capturing-acceleration-data.html
This code works in MATLAB mobile but when i want to upload it desktop, it doesn't work. It doesn't recognize the 'accellog' function and without it, I can't take data information from 'mobiledev' . When I use Logging metod to stream the sensor data, I provide what I want but I must log new data for every time in this method. Can I use mobiledev a different way in this project?

回答(1 个)

Sai Teja G
Sai Teja G 2023-9-11
Hi Cem,
I understand that you want to use 'mobiledev' function in the MATLAB desktop version.
From MATLAB, 'mobiledev' is not defined by default.
You need to install each of the following support packages to use 'mobiledev' and 'mobiledevlist'.
MATLAB Support Package for Apple iOS Sensors -
MATLAB Support Package for Android Sensors -
Also, please keep in mind that 'mobiledev' function works from MATLAB when MATLAB's machine and mobilephones are in the same network.
Hope it helps!

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by