-
-
Save GiovanniBalestrieri/6699ee8e4f650c078863 to your computer and use it in GitHub Desktop.
Snippet - Basic Filter Matlab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % This scipt loads and plots data from a .mat file | |
| clc | |
| gxFdata = 0; | |
| gyFdata = 0; | |
| gzFdata = 0; | |
| % Loads samples from file | |
| dat = load('GyroSamples.mat'); | |
| dat = load('samples.mat'); | |
| % Plots raw data vs samples | |
| figure(2); | |
| plot(dat.x); | |
| title('Noisy acceleration along X axis'); | |
| xlabel('Samples [s]'); | |
| ylabel('Amplitude [m*s^-2]'); | |
| grid on | |
| grid minor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment