-
Notifications
You must be signed in to change notification settings - Fork 9
/
tempPostProcessing.m
61 lines (58 loc) · 1006 Bytes
/
tempPostProcessing.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
error1 = Err.signals.values;
out1 = out.signals.values;
%%
error2 = Err.signals.values;
out2 = out.signals.values;
time = out.time;
%%
error3 = Err.signals.values;
out3 = out.signals.values;
%%
figure;
plot(time,1e6*error1);
hold on;
plot(time,1e6*error2);
%%
figure;
plot(time,1e6*out1);
hold on;
plot(time,1e6*out2);
%%
figure;
plot(time,1e6*error1);
hold on;
plot(time,1e6*error2);
plot(time,1e6*error3);
%%
figure;
plot(time,1e6*out1);
hold on;
plot(time,1e6*out2);
plot(time,1e6*out3);
%%
figure;
plot([alpha1,alpha2,alpha3,alpha4,alpha5,alpha6,alpha7,alpha8])
%%
time = noise.time;
noiseValue = noise.signals.values;
figure;
plot(time,noiseValue,'linewidth',2);
ylabel('\mu m');
xlabel('ʱ¼ä (s)');
grid on;
set(gca,'fontsize',14);
%%
fn = 700;
zeta = 0.06
wn = fn * 2 * pi;
m1 = 5; m2 = 20;
k = wn * wn * m1 * m2 /(m1+m2);
c = 2*zeta*wn*m1 * m2 /(m1+m2);
tempG = tf(1,[c,k]);
Op=bodeoptions;
Op.FreqUnits='Hz';
Op.xlim={[1 500]};
Op.PhaseVisible = 'on';
Op.Grid='on';
figure;
bodeplot(tempG,Op);