How to clear mobiledev?

조회 수: 18 (최근 30일)
tianjie zhang
tianjie zhang 2019년 8월 13일
답변: Elena 2025년 5월 15일
mobiledev is created when first connectting to the matlab mobile. however, when I disconnect with my matlab mobile and want to start a new connection, I cannot clear the exist mobiledev. what should I do?

답변 (3개)

Elena
Elena 2025년 5월 15일
When you disconnect MATLAB Mobile, sometimes the mobiledev object in MATLAB Mobile cannot be cleared with the clear command, and reconnecting may not work as expected.
To work around this issue:
  1. On your mobile device, open MATLAB Mobile.
  2. Go to Sensors More Sensor Settings.
  3. Toggle off Sensor Access for at least 30 seconds.
  4. Toggle on Sensor Access again.
After doing this, you should be able to create a new mobiledev object and reconnect without restarting MATLAB Mobile.

Maadhav Akula
Maadhav Akula 2019년 8월 13일
The following command will help you:
clear m;
Hope this helps!
  댓글 수: 2
tianjie zhang
tianjie zhang 2019년 8월 14일
thanks but useless
Theodore Maruyama
Theodore Maruyama 2019년 10월 25일
In my Matlab course, my teacher placed
clear m;
clear mobiledev;
at the end of the data logging.

댓글을 달려면 로그인하십시오.


Gayathri
Gayathri 2025년 5월 12일
If you are creating the "mobiledev" object as follows
m=mobiledev;
then, after using the object for your subsequent operations, use the below command to delete the object.
delete(m);
This will help us to destroy the object and the existing connection.
You can know more about the "delete" function from the below documentation link.
Hope this helps!

커뮤니티

더 많은 답변 보기:  원격 교육 커뮤니티

카테고리

Help CenterFile Exchange에서 Sensor Data Collection에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by