问题描述:
Matlab求助!问题出现是Conversion to double from sym is not possible.
syms t p a km kh kl
t=0:1:20 p=0.1 a=0.5 kh=100 km=80 kl=60
y1=1-(1-p).^t.*(kh*kl.*exp(a.*y1.*kh.*t)./(kl.*exp(a.*y1.*kh.*t)-kl+kh)-kl)/(kh-kl)
y2=1-(1-p).^t.*(kh*km.*exp(a.*y2.*kh.*t)./(km.*exp(a.*y2.*kh.*t)-km+kh)-km)/(kh-km)
plot(t,y1,t,y2)
应该是表达式的问题 没有算出数值.matlab我不是很熟悉哪位大神给改一下
syms t p a km kh kl
t=0:1:20 p=0.1 a=0.5 kh=100 km=80 kl=60
y1=1-(1-p).^t.*(kh*kl.*exp(a.*y1.*kh.*t)./(kl.*exp(a.*y1.*kh.*t)-kl+kh)-kl)/(kh-kl)
y2=1-(1-p).^t.*(kh*km.*exp(a.*y2.*kh.*t)./(km.*exp(a.*y2.*kh.*t)-km+kh)-km)/(kh-km)
plot(t,y1,t,y2)
应该是表达式的问题 没有算出数值.matlab我不是很熟悉哪位大神给改一下
问题解答:
我来补答展开全文阅读