matlab fzero 问题function v=dxt2(x1,x2)n=0.0109;d=sqrt((x2(1)-x1(1))^2+(x2(2)-x1(2))^2);i=(x2(2)-x1(2))/d;y=2.5*sqrt(n)-0.13-0.75*sqrt(2.2/4)*(sqrt(n)-0.1);x=fzero(@(x)1/n*2.2/4*(1-sin(x)/x)^(y+1/2)*2.2^2/8*(x-sin(x))*sqrt(i)-0.6,0.5);a=2.2^2/8*(x-

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 01:00:45
matlabfzero问题functionv=dxt2(x1,x2)n=0.0109;d=sqrt((x2(1)-x1(1))^2+(x2(2)-x1(2))^2);i=(x2(2)-x1(2))/d

matlab fzero 问题function v=dxt2(x1,x2)n=0.0109;d=sqrt((x2(1)-x1(1))^2+(x2(2)-x1(2))^2);i=(x2(2)-x1(2))/d;y=2.5*sqrt(n)-0.13-0.75*sqrt(2.2/4)*(sqrt(n)-0.1);x=fzero(@(x)1/n*2.2/4*(1-sin(x)/x)^(y+1/2)*2.2^2/8*(x-sin(x))*sqrt(i)-0.6,0.5);a=2.2^2/8*(x-
matlab fzero 问题
function v=dxt2(x1,x2)
n=0.0109;
d=sqrt((x2(1)-x1(1))^2+(x2(2)-x1(2))^2);
i=(x2(2)-x1(2))/d;
y=2.5*sqrt(n)-0.13-0.75*sqrt(2.2/4)*(sqrt(n)-0.1);
x=fzero(@(x)1/n*2.2/4*(1-sin(x)/x)^(y+1/2)*2.2^2/8*(x-sin(x))*sqrt(i)-0.6,0.5);
a=2.2^2/8*(x-sin(x));
v=d*a;
调用是错误:
? Error using ==> fzero
Function value at starting guess must be finite and real.
Error in ==> dxt2 at 6
x=fzero(@(x)1/n*2.2/4*(1-sin(x)/x)^(y+1/2)*2.2^2/8*(x-sin(x))*sqrt(i)-0.6,0.5);
求解释,怎么改?,急

matlab fzero 问题function v=dxt2(x1,x2)n=0.0109;d=sqrt((x2(1)-x1(1))^2+(x2(2)-x1(2))^2);i=(x2(2)-x1(2))/d;y=2.5*sqrt(n)-0.13-0.75*sqrt(2.2/4)*(sqrt(n)-0.1);x=fzero(@(x)1/n*2.2/4*(1-sin(x)/x)^(y+1/2)*2.2^2/8*(x-sin(x))*sqrt(i)-0.6,0.5);a=2.2^2/8*(x-
x1和x2的值是多少.我猜你的i没加绝对值变成负数了,然后sqrt(i)是复数,fzero就报错了.error说起始值必须是实数.

求matlab高手帮忙 fzero请高手帮忙用fzero function y=tan(x)-x这个方程. 求MATLAB高手帮助----fzero函数的问题用fzero函数是,总是出现Error using ==> fzeroFunction value at starting guess must be finite and real.这是什么原因?怎么才能弄好啊····谢谢······matlab符号运算中,怎么把 用matlab解“8000*0.4913^2-8000*exp(-(1.5088+X)/14.3))*X^2=0”这个方程,用fzero命令总是会报错.这是怎么回事?fun=inline('8000*0.4913^2-8000*exp(-(1.5088+X)/14.3))*X^2');X=fzero(fun,[0,50]) %%范围没有问题 matlab中fzero函数求解方程:cos(x)=x*(e^x) Matlab库存函数fzero( )的原函数所运用的基本求解方法是什么 求多项式的零点,用matlab语言中的roots和fzero MATLAB中fzero()的问题~P = 9.33; T = 300.2; n = 2; a = 4.17;b = 0.0371;R = 0.08206;V=fzero('P*V^3-(P*n*b+n*R*T)*V^2+a*n^2*V-a*b*n^3',0)这个程序错在哪?为啥说我没有给参数赋值?(我的是6.5的MATLAB)Error using ==> fzeroFZERO cannot matlab中fzero函数怎么调用f1=cos(x)-x;x0=0.55;x1=fzero(f1,x0)%x2=fzero(f1,[0.5,0.6])这个程序怎么得不到这个根呢? matlab fzero 问题function v=dxt2(x1,x2)n=0.0109;d=sqrt((x2(1)-x1(1))^2+(x2(2)-x1(2))^2);i=(x2(2)-x1(2))/d;y=2.5*sqrt(n)-0.13-0.75*sqrt(2.2/4)*(sqrt(n)-0.1);x=fzero(@(x)1/n*2.2/4*(1-sin(x)/x)^(y+1/2)*2.2^2/8*(x-sin(x))*sqrt(i)-0.6,0.5);a=2.2^2/8*(x- Matlab 用数值方法近似计算三角波信号的频谱,代码有问题,试用数值方法近似计算三角波信号的频谱图示三角波可表示为:f1(t)=(1-|t|)[u(t+1)-u(t-1)]三角波信号频谱的理论值为:F(jw)=Sa²(w/2)funct 利用函数MATLAB中的fzero求解方程x^2.*exp(-x^2)=0.2在区间[-2,2]的根? matlab运用fzero求解.已知y(t)=e^(-t)cos10t ,求ts,使 |y(t)|=0.05. matlab问题 matlab问题 MATLAB求解方程的小问题,30分!已知一个非线性方程exp(x)-x=a,求出a分别取1 2 3 4 5 6 7 8 9 10时,原方程的解.如何用solve或者fzero编程解决呢,可不要说用solve或者fzero10次(如果a有100个取值,难道用sol MATLAB中这个fzero()函数怎么用?y=cos(x)-x;plot(x,y);x0=0.7;x=fzero(@f,x0);这个代码哪个地方错了? '如何用matlab求解 4*x.^4-4*x.^2 =0的解,好像matlab不能计算,至少fzero和solve函数解不出来, matlab 如何用solve求根?我求出来的和fzero的不同,solve的都是复数,fzero都是实数……我用solve求这个方程的根solve('12*x^2 - x^3 - 41*x + 35')结果出了3个复数的根,可是我用fzero逐个逐个找,我找到了3个