function[]=expand(k,Q,C,s,r,ws,wa,wd)k=0.1;Q=100000;C=100;s=3000;r=2700;wd=200;ws=350;wa=400;x0=0;y0=1787;z0=4;p0=176.4125;R=sqrt((-4)*k*s*log((C/((1-r)*Q)).*(4*pi*k*s)^(1.5)));for i=0:100:s/100if(wd*(i/100))

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 05:09:52
function[]=expand(k,Q,C,s,r,ws,wa,wd)k=0.1;Q=100000;C=100;s=3000;r=2700;wd=200;ws=350;wa=400;x0=0;y0=1787;z0=4;p0=176.4125;R=sqrt((-4)*k*s*log((C/((1-r)*Q)).*(4*pi*k*s)^(1.5)));for i=0:100:s/100if(wd*(i/100))
xݒn@_Bb O@U+* +M Qչr# B2w

function[]=expand(k,Q,C,s,r,ws,wa,wd)k=0.1;Q=100000;C=100;s=3000;r=2700;wd=200;ws=350;wa=400;x0=0;y0=1787;z0=4;p0=176.4125;R=sqrt((-4)*k*s*log((C/((1-r)*Q)).*(4*pi*k*s)^(1.5)));for i=0:100:s/100if(wd*(i/100))
function[]=expand(k,Q,C,s,r,ws,wa,wd)
k=0.1;
Q=100000;
C=100;
s=3000;
r=2700;
wd=200;
ws=350;
wa=400;
x0=0;
y0=1787;
z0=4;
p0=176.4125;
R=sqrt((-4)*k*s*log((C/((1-r)*Q)).*(4*pi*k*s)^(1.5)));
for i=0:100:s/100
if(wd*(i/100))

function[]=expand(k,Q,C,s,r,ws,wa,wd)k=0.1;Q=100000;C=100;s=3000;r=2700;wd=200;ws=350;wa=400;x0=0;y0=1787;z0=4;p0=176.4125;R=sqrt((-4)*k*s*log((C/((1-r)*Q)).*(4*pi*k*s)^(1.5)));for i=0:100:s/100if(wd*(i/100))
你这个函数既没有外部输入值 也没有返回值 那首行就应该改成:
function expand
然后我试运行了下 发现第十四行:
R=sqrt((-4)*k*s*log((C/((1-r)*Q)).*(4*pi*k*s)^(1.5)))
返回的是一个复数,导致后面运算不下去
你仔细检查下是不是写错了 而且这行里面‘(4*pi*k*s)^(1.5)’项是一个标量 没有必要用.*在前面

Expand=扩大 expand expand expand/ function[]=expand(k,Q,C,s,r,ws,wa,wd)k=0.1;Q=100000;C=100;s=3000;r=2700;wd=200;ws=350;wa=400;x0=0;y0=1787;z0=4;p0=176.4125;R=sqrt((-4)*k*s*log((C/((1-r)*Q)).*(4*pi*k*s)^(1.5)));for i=0:100:s/100if(wd*(i/100)) eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--)d[c.toString(a)]=k[c]||c.toString(a);k=[function(e){return d[e]}];e=function(){return'\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\b'+e(c matlab中expand问题>> syms x y;>> expand((x-2)*(x-4))>>expand(cos(x+y))>>expand(exp((a+b)^2))ans =x^2 - 6*x + 8 得出:>>expand(cos(x+y))|Error: Unexpected MATLAB operator. >> >>expand(exp((a+b)^2))得出: >>expand(exp((a+b)^2))|Error: Unexpect function function mone; k=0:1:11; r=0.00591; m=6674; x=m*(1+r)^k; plot(k,x,y-); end matlab报错Function definitions are not permitted at the prompt or in scripts.麻烦帮修改程序能运行这是我的程序function []=expand(q,a,d,t,v0)R=(q*t/(a*pi/6+5000*pi))^(1/3);q=1;a=14363.384;d=0.3;t=100000;v0=3.6;for i=0:24:t/3600if (d*( expand是什么意思 expand过去式 cyclic expand expand翻译! if i mo(D) 2=0 then sum=sum+i i=i+2 中的“mo(D)”是什么意思?function gys(k,h)if k If the function f given by f(x)=x3 has an average value of 9 on the closed interval [0,k],then k=? For what value(s) of the constant k will the following function not be its own inverse.f(x) =(x - k)/(x - 1) matlab绘制函数图象定义了两个函数,一个是:function y=AdaptFunc(x) y=x^2+2*x+3;y;另一个:function DrawAdaptFunc(ParticleScope,AdaptFunc)x=[ParticleScope(1):0.1:ParticleScope(2)];for k=1:size(x);y(k)=AdaptFunc(x(k));plot(x(k),y(k));