Skip to content

Instantly share code, notes, and snippets.

@GiovanniBalestrieri
Created July 28, 2015 02:24
Show Gist options
  • Save GiovanniBalestrieri/8622be733a56a2681445 to your computer and use it in GitHub Desktop.
Save GiovanniBalestrieri/8622be733a56a2681445 to your computer and use it in GitHub Desktop.
Rolling plot Matlab Arduino Gyroscope
%% Ask desired Sample Rate in Hz
rate=input('Enter the samplerate in Hz. Max 500Hz: ');
delay = 1/rate;
str = sprintf('SampleRate fixed to: %f.', delay);
disp(str);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment