Help me:matlab program
hello..i'm damia
i need help in matlab programming :eek3:
my project is on delay time modelling for complex system using maximum likelihood estimation. i already program it, but i think the estimated value is not correct.and i think that it is because of the coding...huhuhuuu~~~
if anyone can help me, i try to give the program that i have done and just contact me at cemot_comey@yahoo.com
i need help in matlab programming :eek3:
my project is on delay time modelling for complex system using maximum likelihood estimation. i already program it, but i think the estimated value is not correct.and i think that it is because of the coding...huhuhuuu~~~
if anyone can help me, i try to give the program that i have done and just contact me at cemot_comey@yahoo.com
0
Comments
% a= alpha
% b= beta
% v= vehicle
data =input('data: ')
[r,c]=size(data);
M= input ('no of inspection: ')
[b2,k2]=size (M);
a=0.0010;
b=0.0010;
x1=0;
x3=0;
for v=1:100
MI2=1;
for b3=1:b2
if b3-1==0
MI=M(1,1);
else
MI=M(b3,1)-M(b3-1,1);
end
for r2=MI2:MI
N=data(r2,2); %N= failure cycle
for N2=1:N %sigma i=1:N
if N~=0 %if failure cycle is not 0
n=data(r2,6); %n = number of failure
df=data(r2,5); %df= delta f
x=-a*df+(n+1)*log10(a*(1-exp(-b*df)))-n*log10(b);
x1=x1+x
end
end
M1=data(r2,1); %N= inspection cycle
for M2=1:M1 %sigma i=1:M1
if M1~=0
m=data(r2,4);
di=data(r2,3);
x2=-a*(di)+m*log10(a/b*(1-exp(-b*di)));
x3=x3+x2
MI2=MI+1;
end
end
MI2=MI+1;
end
end
end
x4=x1+x3
****HELP ME ..PLEASE!!!***I DUN NO WHAT TO DO~~