% Filtering motor data script
clc;
clear;
close all;
data = readmatrix("log2.csv");

time = data(:, 1);
Iq_measured = data(:, 2);
Iq_reff = data( :, 3);

plot(time, Iq_measured, 'b');
hold on;
plot(time,Iq_reff);
hold off;

xlabel('Time');
ylabel('Value');
legend('measured torque current', 'reffrence torque current');
title('Iq vs time - no filtering');

