COMPUTACIONAL C1
-
Upload
brian-alarcon -
Category
Documents
-
view
215 -
download
0
description
Transcript of COMPUTACIONAL C1
>> VF=[1.4,2.5,7.8,4.7,8.5,6.3,3.6,2.8]
VF =
1.4000 2.5000 7.8000 4.7000 8.5000 6.3000 3.6000 2.8000
>> media=mean(VF)
media =
4.7000
>> mediana=median(VF)
mediana =
4.1500
>> des_standar=std(VF)
des_standar =
2.5956
>> rango=range(VF)
rango =
7.1000
>> cuartiles=prctile(VF,[25 50 75])
cuartiles =
2.6500 4.1500 7.0500
>> VC=[1.2;2.4;3.7;5.3]
VC =
1.2000
2.4000
3.7000
5.3000
>> A=[3.4 2.5 4.6;2.2 1.8 6.6;3.9 1.7 5.8]
A =
3.4000 2.5000 4.6000
2.2000 1.8000 6.6000
3.9000 1.7000 5.8000
>> B=A(1,:)
B =
3.4000 2.5000 4.6000
>> C=A(:,2)
C =
2.5000
1.8000
1.7000
>> Trasnp=A'
Trasnp =
3.4000 2.2000 3.9000
2.5000 1.8000 1.7000
4.6000 6.6000 5.8000
>> X=magic(6)
X =
35 1 6 26 19 24
3 32 7 21 23 25
31 9 2 22 27 20
8 28 33 17 10 15
30 5 34 12 14 16
4 36 29 13 18 11
>> prctile(X,[25 50 75])
ans =
4.0000 5.0000 6.0000 13.0000 14.0000 15.0000
19.0000 18.5000 18.0000 19.0000 18.5000 18.0000
31.0000 32.0000 33.0000 22.0000 23.0000 24.0000
>> Y=exprnd(1,5,1)
Y =
0.2049
0.0989
2.0637
0.0906
0.4583
>> media=mean(Y)
media =
0.5833
>> mediana1=median(Y)
mediana1 =
0.2049
>> geometrica=geomean(Y)
geometrica =
0.2805
>> Z=betarnd(10,10,[1 10])
Z =
Columns 1 through 9
0.4090 0.7071 0.3226 0.6433 0.7957 0.4643 0.5027 0.5601 0.5303
Column 10
0.6095
>> mean(Z)
ans =
0.5545
>> median(Z)
ans =
0.5452
>> harmean(Z)
Undefined function 'harmean' for input arguments of type 'double'.
>> harmmean(Z)
ans =
0.5202
>> X=chi2md(2,15,1)
Undefined function 'chi2md' for input arguments of type 'double'.
>>
>> X=chi2rmd(2,15,1)
Undefined function 'chi2rmd' for input arguments of type 'double'.
>> X=chi2rnd(2,15,1)
X =
1.0818
4.0340
0.3618
2.5745
0.2163
5.7287
2.0364
4.1168
1.3872
4.0591
1.4786
0.4514
10.0328
2.9660
3.3745
>> mediaa=trimmean((X,20)
mediaa=trimmean((X,20)
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
>> mediaa=trimmean((X,20)
mediaa=trimmean((X,20)
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
>> mediaa=trimmean(X,20)
mediaa =
2.5885
>> Z=normrnd(0,1,10,1)
Z =
-0.7648
-1.4023
-1.4224
0.4882
-0.1774
-0.1961
1.4193
0.2916
0.1978
1.5877
>> irt(Z)
Undefined function 'irt' for input arguments of type 'double'.
>> iqr(Z)
ans =
1.2530
>> W=poissrnd(4,10,1)
W =
5
3
4
1
5
1
5
3
3
3
>> range(W)
ans =
4
>> Q=binornd(8,0.5,50,1);
>> tabulate(Q)
Value Count Percent
1 0 0.00%
2 5 10.00%
3 10 20.00%
4 14 28.00%
5 15 30.00%
6 5 10.00%
7 1 2.00%
>> P=randperm(10)
P =
4 2 1 9 8 5 6 10 3 7
>> 1:50
ans =
Columns 1 through 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Columns 16 through 30
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Columns 31 through 45
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
Columns 46 through 50
46 47 48 49 50
>> erupciones
erupciones =
3.6000
1.8000
3.3330
2.2830
4.5330
2.8830
4.7000
3.6000
1.9500
4.3500
1.8330
3.9170
4.2000
1.7500
4.7000
2.1670
1.7500
4.8000
1.6000
4.2500
1.8000
1.7500
3.4500
3.0670
4.5330
3.6000
1.9670
4.0830
3.8500
4.4330
4.3000
4.4670
3.3670
4.0330
3.8330
2.0170
1.8670
4.8330
1.8330
4.7830
4.3500
1.8830
4.5670
1.7500
4.5330
3.3170
3.8330
2.1000
4.6330
2.0000
4.8000
4.7160
1.8330
4.8330
1.7330
4.8830
3.7170
1.6670
4.5670
4.3170
2.2330
4.5000
1.7500
4.8000
1.8170
4.4000
4.1670
4.7000
2.0670
4.7000
4.0330
1.9670
4.5000
4.0000
1.9830
5.0670
2.0170
4.5670
3.8830
3.6000
4.1330
4.3330
4.1000
2.6330
4.0670
4.9330
3.9500
4.5170
2.1670
4.0000
2.2000
4.3330
1.8670
4.8170
1.8330
4.3000
4.6670
3.7500
1.8670
4.9000
2.4830
4.3670
2.1000
4.5000
4.0500
1.8670
4.7000
1.7830
4.8500
3.6830
4.7330
2.3000
4.9000
4.4170
1.7000
4.6330
2.3170
4.6000
1.8170
4.4170
2.6170
4.0670
4.2500
1.9670
4.6000
3.7670
1.9170
4.5000
2.2670
4.6500
1.8670
4.1670
2.8000
4.3330
1.8330
4.3830
1.8830
4.9330
2.0330
3.7330
4.2330
2.2330
4.5330
4.8170
4.3330
1.9830
4.6330
2.0170
5.1000
1.8000
5.0330
4.0000
2.4000
4.6000
3.5670
4.0000
4.5000
4.0830
1.8000
3.9670
2.2000
4.1500
2.0000
3.8330
3.5000
4.5830
2.3670
5.0000
1.9330
4.6170
1.9170
2.0830
4.5830
3.3330
4.1670
4.3330
4.5000
2.4170
4.0000
4.1670
1.8830
4.5830
4.2500
3.7670
2.0330
4.4330
4.0830
1.8330
4.4170
2.1830
4.8000
1.8330
4.8000
4.1000
3.9660
4.2330
3.5000
4.3660
2.2500
4.6670
2.1000
4.3500
4.1330
1.8670
4.6000
1.7830
4.3670
3.8500
1.9330
4.5000
2.3830
4.7000
1.8670
3.8330
3.4170
4.2330
2.4000
4.8000
2.0000
4.1500
1.8670
4.2670
1.7500
4.4830
4.0000
4.1170
4.0830
4.2670
3.9170
4.5500
4.0830
2.4170
4.1830
2.2170
4.4500
1.8830
1.8500
4.2830
3.9500
2.3330
4.1500
2.3500
4.9330
2.9000
4.5830
3.8330
2.0830
4.3670
2.1330
4.3500
2.2000
4.4500
3.5670
4.5000
4.1500
3.8170
3.9170
4.4500
2.0000
4.2830
4.7670
4.5330
1.8500
4.2500
1.9830
2.2500
4.7500
4.1170
2.1500
4.4170
1.8170
4.4670
>> espera
espera =
79
54
74
62
85
55
88
85
51
85
54
84
78
47
83
52
62
84
52
79
51
47
78
69
74
83
55
76
78
79
73
77
66
80
74
52
48
80
59
90
80
58
84
58
73
83
64
53
82
59
75
90
54
80
54
83
71
64
77
81
59
84
48
82
60
92
78
78
65
73
82
56
79
71
62
76
60
78
76
83
75
82
70
65
73
88
76
80
48
86
60
90
50
78
63
72
84
75
51
82
62
88
49
83
81
47
84
52
86
81
75
59
89
79
59
81
50
85
59
87
53
69
77
56
88
81
45
82
55
90
45
83
56
89
46
82
51
86
53
79
81
60
82
77
76
59
80
49
96
53
77
77
65
81
71
70
81
93
53
89
45
86
58
78
66
76
63
88
52
93
49
57
77
68
81
81
73
50
85
74
55
77
83
83
51
78
84
46
83
55
81
57
76
84
77
81
87
77
51
78
60
82
91
53
78
46
77
84
49
83
71
80
49
75
64
76
53
94
55
76
50
82
54
75
78
79
78
78
70
79
70
54
86
50
90
54
54
77
79
64
75
47
86
63
85
82
57
82
67
74
54
83
73
73
88
80
71
83
56
79
78
84
58
83
43
60
75
81
46
90
46
74
>> mean(erupciones)
ans =
3.4878
>> mean(espera)
ans =
70.8971
>> std(erupciones)
ans =
1.1414
>> corr(erupciones,espera)
ans =
0.9008
>>
>> fplot('x*x',[-1 1])