Professional Documents
Culture Documents
Diary Cubic
Diary Cubic
m
>> V=[1.5
2.0
3.5
3.7
3.8
3.9
4.0
5.0
5.2
6.3
6.8
7.0
7.5
7.7
8.0
9.0
9.3
10.0
11.0
12.0
12.5
13.0
14.0
14.5
15.0
];
>>
>>
>> I=[10
20
75
130
175
180
160
95
30
20
30
95
175
230
270
270
265
210
95
80
115
210
315
309
225
];
>> Vi=1.5:0.01:15
Vi =
Columns 1 through 5
Columns 6 through 10
Columns 11 through 15
Columns 16 through 20
Columns 21 through 25
Columns 26 through 30
Columns 31 through 35
Columns 36 through 40
Columns 41 through 45
Columns 46 through 50
Columns 51 through 55
Columns 56 through 60
Columns 61 through 65
Columns 66 through 70
Columns 71 through 75
Columns 76 through 80
Columns 81 through 85
Columns 86 through 90
Columns 91 through 95
Column 1351
15.0000
>> Ii=interp1(V,I,Vi,'spline');
>> plot(V ,I,Vi,Ii,'-or')
>> plot(V,I,Vi,Ii,'r')
>> diary off
130
175
180
160
95
30
20
30
95
175
230
270
270
265
210
95
80
115
210
315
309
225
];
I>>
>> Ii=interp1(V,I,Vi,'pchip');
>> plot(V,I,Vi,Ii,'g')
>> plot(V,I,Vi,Ii,'-or')
>> diary off
>>