matlab中fsolve解非线性方程组算例
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/10/05 17:28:24
matlab中fsolve解非线性方程组算例
>> syms x y
eq1=(1-0.14*x^2)*(0.3+0.7*exp(-0.65*x^6))-0.2537*y;
eq2=x-3.9735*y;
ezplot(eq1)
hold on
ezplot(eq2)
x0=[2 1;-4 -1]
for ii=1:2
[x fval]=fsolve(@f,x0(ii,:))
end
运行时总出现
Error:"f" was previously used as a variable,
conflicting with its use here as the name of a function.
是怎么回事?另外x0为什么有两组数值?
>> syms x y
eq1=(1-0.14*x^2)*(0.3+0.7*exp(-0.65*x^6))-0.2537*y;
eq2=x-3.9735*y;
ezplot(eq1)
hold on
ezplot(eq2)
x0=[2 1;-4 -1]
for ii=1:2
[x fval]=fsolve(@f,x0(ii,:))
end
运行时总出现
Error:"f" was previously used as a variable,
conflicting with its use here as the name of a function.
是怎么回事?另外x0为什么有两组数值?
fsolve的第一个参数f是什么 应该是个函数 你看看之前运行了什么程序把f用了
matlab 中解二元非线性方程组问题,fsolve高手帮帮忙
MATLAB中fsolve解非线性方程问题
matlab 中fsolve求解非线性方程组可以给定解的区间么
MATLAB fsolve 解非线性方程
MATLAB求解非线性方程组用fsolve函数求解
matlab用fsolve求解非线性方程组,无法求解……
matlab解非线性方程组
matlab 解非线性方程组
用MATLAB解非线性方程组
matlab解非线性微分方程组
关于Matlab求解非线性隐式方程组的求解,利用fsolve,solve,或ezplot等自带函数求解,
Matlab问题:请教fsolve求解非线性方程问题