Vous êtes sur la page 1sur 5

>> A=[2 3 5]

A =

2 3 5

>> A=[2; 3; 5]

A =

2
3
5

>> bB=[-2; 3; -1]

bB =

-2
3
-1

>> A+bB

ans =

0
6
4

>> A-bB

ans =

4
0
6

>> A.*bB

ans =

-4
9
-5

>> A./bB

ans =

-1
1
-5

>> A'

ans =

2 3 5
>> C=A'

C =

2 3 5

>> C*B
Undefined function or variable 'B'.

>> C*bB

ans =

>> bB*C

ans =

-4 -6 -10
6 9 15
-2 -3 -5

>> V=[0 2 4 6 8 10 12 14 16 18 20];


>> W=linspace(0,20,11)

W =

Columns 1 through 6

0 2 4 6 8 10

Columns 7 through 11

12 14 16 18 20

>> VO=100;
>> F=10;
>> L=5;
>> t=[0 1 2 3 4 5 6 7 8 9 10];
>> V=VO+(F-L)*t

V =

Columns 1 through 6

100 105 110 115 120 125

Columns 7 through 11

130 135 140 145 150

>> V=VO+(F-L).*t

V =

Columns 1 through 6
100 105 110 115 120 125

Columns 7 through 11

130 135 140 145 150

>> t=[0:1:100];
>> CO=0.5;
>> C=1-CO*((VO+(F-L)*t)/VO).^((F-L)/F);
>> size(C)

ans =

1 101

>> size(t)

ans =

1 101

>> [t' C']

ans =

0 0.5000
1.0000 0.4877
2.0000 0.4756
3.0000 0.4638
4.0000 0.4523
5.0000 0.4410
6.0000 0.4299
7.0000 0.4191
8.0000 0.4084
9.0000 0.3979
10.0000 0.3876
11.0000 0.3775
12.0000 0.3675
13.0000 0.3577
14.0000 0.3481
15.0000 0.3386
16.0000 0.3292
17.0000 0.3199
18.0000 0.3108
19.0000 0.3018
20.0000 0.2929
21.0000 0.2841
22.0000 0.2754
23.0000 0.2669
24.0000 0.2584
25.0000 0.2500
26.0000 0.2417
27.0000 0.2335
28.0000 0.2254
29.0000 0.2174
30.0000 0.2094
31.0000 0.2016
32.0000 0.1938
33.0000 0.1861
34.0000 0.1784
35.0000 0.1708
36.0000 0.1633
37.0000 0.1559
38.0000 0.1485
39.0000 0.1412
40.0000 0.1340
41.0000 0.1268
42.0000 0.1197
43.0000 0.1126
44.0000 0.1056
45.0000 0.0986
46.0000 0.0917
47.0000 0.0848
48.0000 0.0780
49.0000 0.0713
50.0000 0.0646
51.0000 0.0579
52.0000 0.0513
53.0000 0.0448
54.0000 0.0382
55.0000 0.0318
56.0000 0.0253
57.0000 0.0189
58.0000 0.0126
59.0000 0.0063
60.0000 0
61.0000 -0.0062
62.0000 -0.0124
63.0000 -0.0186
64.0000 -0.0247
65.0000 -0.0308
66.0000 -0.0368
67.0000 -0.0428
68.0000 -0.0488
69.0000 -0.0548
70.0000 -0.0607
71.0000 -0.0665
72.0000 -0.0724
73.0000 -0.0782
74.0000 -0.0840
75.0000 -0.0897
76.0000 -0.0954
77.0000 -0.1011
78.0000 -0.1068
79.0000 -0.1124
80.0000 -0.1180
81.0000 -0.1236
82.0000 -0.1292
83.0000 -0.1347
84.0000 -0.1402
85.0000 -0.1456
86.0000 -0.1511
87.0000 -0.1565
88.0000 -0.1619
89.0000 -0.1673
90.0000 -0.1726
91.0000 -0.1779
92.0000 -0.1832
93.0000 -0.1885
94.0000 -0.1937
95.0000 -0.1990
96.0000 -0.2042
97.0000 -0.2093
98.0000 -0.2145
99.0000 -0.2196
100.0000 -0.2247

>> plot(t',C')
>> plot(t,C)
>>
>> plot(t,C)
>>

Vous aimerez peut-être aussi