Azzera filtri
Azzera filtri

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

7 visualizzazioni (ultimi 30 giorni)
test1 = mobiledev; test1.SampleRate = 1; test2.AccelerationSensorEnabled = 1; test1.Logging=1; pause (600); test1.Logging=0;
[a time] = accellog(test1)
  4 Commenti
Misha
Misha il 3 Set 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?

Accedi per commentare.

Risposte (0)

Community

Più risposte nel  Distance Learning Community

Categorie

Scopri di più su MATLAB Mobile in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by