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
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 个)
社区
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!