Why is the sample rate in Matlab Mobile not 100Hz when I define them as 100Hz?
7 views (last 30 days)
Show older comments
test1 = mobiledev; test1.SampleRate = 1; test2.AccelerationSensorEnabled = 1; test1.Logging=1; pause (600); test1.Logging=0;
[a time] = accellog(test1)
4 Comments
Misha
on 3 Sep 2020
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?
Answers (0)
Communities
More Answers in the Distance Learning Community
See Also
Categories
Find more on MATLAB Mobile in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!