-
Notifications
You must be signed in to change notification settings - Fork 0
/
cur3D.m
26 lines (22 loc) · 683 Bytes
/
cur3D.m
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
% This program will generate a 3D plot
% & best points under different delays
% & best point in average
% 3D Tri-Surface Plot
num = xlsread('C:/Users/el17jg/Desktop/GitHub/summer19/cur.csv', 'A2:C716');
x = num(:,1);
y = num(:,2);
z = num(:,3);
K = boundary(x, y, z, 1);
trisurf(K, x, y, z, 'FaceAlpha', 0.1, 'DisplayName', 'Machine g2: 3D TriSurface Plot (stable cases)')
colorbar
xlabel('kp')
ylabel('ki')
zlabel('delay (sec)')
xlim([0.1 3.7]);
ylim([0.01 0.09]);
zlim([0 200]);
set(gca,'XTick',[0.1:0.5:3.7])
set(gca,'YTick',[0.01:0.01:0.09])
set(gca,'ZTick',[0:50:200])
legend show
title('3D TriSurface Plot (stable cases)')