distribuciones en matlab
TRANSCRIPT
-
7/24/2019 Distribuciones en Matlab
1/2
TRABAJO En MATLAB
Distribucin normal
Distribucion de normal Dfabian fic uncp
% Clears screen and deletes all the variables in the workspace
clc; clear;
% Asks the user for input
m = input('ean! '";
s = input('#td$ Dev! '";
= input('& = '";
% Calculates the freuenc ( coordinate"
= abs(( m")s";
r = e&p(*+)+")srt(+,pi";
str = -'.reuenc! 'num+str(r"/;
disp(str"
0 = ;
% Appro&imates probabilit (area under curve"
= 1)(1 2 3$44+56,abs("";
a1 = 3$7451845;
a+ = 3$1+31565;
a4 = 3$946+983;
t = 1 r,(a1, 2 a+,*+ 2 a4,*4";
if0 : 3
t = 1 t;
end
str = -'robabilit! 'num+str(t"/;
disp(str"
-
7/24/2019 Distribuciones en Matlab
2/2
Distribucin chi cuadrado
Distribucion de chi + .abian f derees of freedom are odd? then uses the pi factor
iffloor(v)+" == v)+
@ = 1;
else
@ = srt(+)(w,pi"";
end
l = 1;
m = 1;
v = v 2 +;
m = m,w)v;
% #ummation factor
whilem = 1e6 l = l 2 m;
v = v 2 +;
m = m,w)v;
end
% Displas results
str = -'Bail end value! 'num+str(1@,k,l"/;
disp(str"
str = -'ercentile! 'num+str(@,k,l"/;
disp(str"