You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
325 B
22 lines
325 B
clear all
|
|
close all
|
|
|
|
filename = 'trajectory_1.csv';
|
|
M = csvread(filename);
|
|
|
|
sampletime = 0.005
|
|
t_max = size(M,1) * sampletime;
|
|
|
|
t = linspace(0,t_max,size(M,1));
|
|
|
|
|
|
[~,M_d] = gradient( M,0.005);
|
|
[~,M_dd] = gradient( M_d,0.005);
|
|
|
|
figure();
|
|
subplot(3,1,1);
|
|
plot (t,M);
|
|
subplot(3,1,2);
|
|
plot (t,M_d);
|
|
subplot(3,1,3);
|
|
plot (t,M_dd);
|