-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplotter.m
More file actions
38 lines (35 loc) · 680 Bytes
/
plotter.m
File metadata and controls
38 lines (35 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
close all
clc
figure
plot(time,xc(:,1),time,xc(:,2),'LineWidth',2)
xlabel('Time(sec)')
ylabel('x_c (mm)')
grid on
figure
plot(time,xc(:,1),time,alpha,'LineWidth',2)
xlabel('Time(sec)')
ylabel('\theta_1 (deg)')
grid on
figure
plot(time,xc(:,1),time,theta,'LineWidth',2)
xlabel('Time(sec)')
ylabel('\theta_2 (deg)')
grid on
%
% figure
% plot(time,xc(:,1),time,x_dot,'LineWidth',2)
% xlabel('Time(sec)')
% ylabel('dx_c (mm)')
% grid on
%
% figure
% plot(time,xc(:,1),time,alpha_dot,'LineWidth',2)
% xlabel('Time(sec)')
% ylabel('d\theta_1 (deg)')
% grid on
%
% figure
% plot(time,xc(:,1),time,theta_dot,'LineWidth',2)
% xlabel('Time(sec)')
% ylabel('d\theta_2 (deg)')
% grid on