Why is the sample rate in Matlab Mobile not 100Hz when I define them as 100Hz?

7 次查看(过去 30 天)
test1 = mobiledev; test1.SampleRate = 1; test2.AccelerationSensorEnabled = 1; test1.Logging=1; pause (600); test1.Logging=0;
[a time] = accellog(test1)
  4 个评论
Misha
Misha 2020-9-3
Hi,
In the provided code sample I see test1.SampleRate = 1. This will set SampleRate to 1Hz
Also I see test1 = mobiledev but accelerometer is turned on for test2: test2.AccelerationSensorEnabled = 1. Is it typo?
What version of MATLAB Mobile do you have? Is it Android or iOS?
Since original question was asked 3 year ago, I want to ask if you are trying this on MATLAB on your computer or you are doing everything in MATLAB Mobile?

请先登录,再进行评论。

回答(0 个)

社区

类别

Help CenterFile Exchange 中查找有关 MATLAB Mobile 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by