关于matlab编程问题,本人正在做毕业设计,但实在对语言不通,恳请哪位好心大神指点一二,急
这是我整个程序的一部分,其实目的很简单,就是生成以K和t为自变量,y=(Ec1+Ec2+....+Ecn)/(Et1+Et2+....+Etn)的函数图象,只是中间这些部...
这是我整个程序的一部分,其实目的很简单,就是生成以K和t为自变量,y=(Ec1+Ec2+....+Ecn)/(Et1+Et2+....+Etn)的函数图象,只是中间这些部分就报错了,请帮我看看,万分感谢!!
T=[0,50,98,143,184,220];
r=0.95;
t_pm=200;
T_mr1=16;
T_mr2=4;
T_pm=8;
C_mi=12;
C_ma=60;
C_mr2=20;
C_mr1=400;
C_mr2=1600;
C_pm=200;
P_in=12;
P_out=6;
t=[0:1:10];
k=[0:1:10];
syms x_1s;
E1=C_mr2.*expcdf(t,10)-int(x_1s*0.1*exp(-0.1*x_1s),x_1s,0,t)*(P_in-P_out)-expcdf(t,10).*t.*(P_out-P_in)-P_in.*t;
syms x_2s;
E2=C_mr2.*expcdf(t,5)-int(x_2s*0.2*exp(-0.2*x_2s),x_2s,0,t)*(P_in-P_out)-expcdf(t,5).*t.*(P_out-P_in)-P_in.*t;
for j=2:6;
p_j=expcdf(T(j),100);
p_(j-1)=expcdf(T(j-1),100);
p_1(j)=((1-r)^(6-j))*(p_j-p_(j-1));
P_1=sum(p_1,2);
end
P_2=1-expcdf(220,100);
>> syms x_1 x c5 s t_p;
f5=r*0.01*exp(-0.01*x_1)*0.02*exp(-0.02*(x-x_1))/(t_pm*(P_1+P_2));
t5=x-220+T_mr2;
Ec5=int(int(int(f5*c5,x_1,220,220+k.*t),x,220+s),s,0,t_p);
Et5=int(int(int(f5*t5,x_1,220,220+k.*t),x,220+s),s,0,t_p);
%c5=floor((x_1-220)./t).*(C_mi+E1)+floor((x-x_1)./t).*(C_mi+E2)+C_mr2+C_ma;
%t_p=5*((0.2.*(220+k.*t)).^0.5-log(0.96)).^2-220-k.*t;
??? Error using ==> sym.maple
Error, (in limit) invalid limiting point
Error in ==> sym.int at 51
r = reshape(maple('map','int',f(:),[x.s '=(' a.s ')..(' b.s ')']),size(f)); 展开
T=[0,50,98,143,184,220];
r=0.95;
t_pm=200;
T_mr1=16;
T_mr2=4;
T_pm=8;
C_mi=12;
C_ma=60;
C_mr2=20;
C_mr1=400;
C_mr2=1600;
C_pm=200;
P_in=12;
P_out=6;
t=[0:1:10];
k=[0:1:10];
syms x_1s;
E1=C_mr2.*expcdf(t,10)-int(x_1s*0.1*exp(-0.1*x_1s),x_1s,0,t)*(P_in-P_out)-expcdf(t,10).*t.*(P_out-P_in)-P_in.*t;
syms x_2s;
E2=C_mr2.*expcdf(t,5)-int(x_2s*0.2*exp(-0.2*x_2s),x_2s,0,t)*(P_in-P_out)-expcdf(t,5).*t.*(P_out-P_in)-P_in.*t;
for j=2:6;
p_j=expcdf(T(j),100);
p_(j-1)=expcdf(T(j-1),100);
p_1(j)=((1-r)^(6-j))*(p_j-p_(j-1));
P_1=sum(p_1,2);
end
P_2=1-expcdf(220,100);
>> syms x_1 x c5 s t_p;
f5=r*0.01*exp(-0.01*x_1)*0.02*exp(-0.02*(x-x_1))/(t_pm*(P_1+P_2));
t5=x-220+T_mr2;
Ec5=int(int(int(f5*c5,x_1,220,220+k.*t),x,220+s),s,0,t_p);
Et5=int(int(int(f5*t5,x_1,220,220+k.*t),x,220+s),s,0,t_p);
%c5=floor((x_1-220)./t).*(C_mi+E1)+floor((x-x_1)./t).*(C_mi+E2)+C_mr2+C_ma;
%t_p=5*((0.2.*(220+k.*t)).^0.5-log(0.96)).^2-220-k.*t;
??? Error using ==> sym.maple
Error, (in limit) invalid limiting point
Error in ==> sym.int at 51
r = reshape(maple('map','int',f(:),[x.s '=(' a.s ')..(' b.s ')']),size(f)); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询