Skip to content

Instantly share code, notes, and snippets.

@GiovanniBalestrieri
Created August 4, 2015 16:29
Show Gist options
  • Save GiovanniBalestrieri/6699ee8e4f650c078863 to your computer and use it in GitHub Desktop.
Save GiovanniBalestrieri/6699ee8e4f650c078863 to your computer and use it in GitHub Desktop.
Snippet - Basic Filter Matlab
% 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