x=[5 10 15 20];
y=[0.9398 0.9357 0.9286 0.7548];
y=a*exp(b*x)+c*exp(d*x)
求解(a,b,c,d)
clear;clc
syms a b c d
x=[5 10 15 20];
y=[0.9398 0.9357 0.9286 0.7548];
eq1=a*exp(b*x(1))+c*exp(d*x(1))-y(1);
eq2=a*exp(b*x(2))+c*exp(d*x(2))-y(2);
eq3=a*exp(b*x(3))+c*exp(d*x(3))-y(3);
eq4=a*exp(b*x(4))+c*exp(d*x(4))-y(4);
[a b c d]=solve(eq1,eq2,eq3,eq4);
a=vpa(a)
b=vpa(b)
c=vpa(c)
d=vpa(d)
用胡孙符号运算厅激f1='…'依次四个式子,然后再用solve(f1,f2…)试试,若不行就要我裤伏链用@
