function mone; k=0:1:11; r=0.00591; m=6674; x=m*(1+r)^k; plot(k,x,"y-"); end

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/27 06:51:02
functionmone;k=0:1:11;r=0.00591;m=6674;x=m*(1+r)^k;plot(k,x,"y-");endfunctionmone;k=0:1:11;r=0.00591

function mone; k=0:1:11; r=0.00591; m=6674; x=m*(1+r)^k; plot(k,x,"y-"); end
function mone; k=0:1:11; r=0.00591; m=6674; x=m*(1+r)^k; plot(k,x,"y-"); end

function mone; k=0:1:11; r=0.00591; m=6674; x=m*(1+r)^k; plot(k,x,"y-"); end
你的,有错误的,修改如下,直接运行吧
k=0:1:11; r=0.00591; m=6674; x=m*(1+r).^k; plot(k,x,'y-');

function mone; k=0:1:11; r=0.00591; m=6674; x=m*(1+r)^k; plot(k,x,y-); end 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中cell数组的疑惑function testvar(varargin)for k=1:length(varargin)x(k)=varargin{k}(1); % 这两句到底是怎么赋值的?y(k)=varargin{k}(2); % 为什么赋值后x y的类型是 cell endxmin=min(0,min(x)); % 这句提示有错误,说min 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)); MATLAB问题 function [f,k]=sconv(f1,f2,k1,k2,p) f=conv(f1,f2); k0=k1(1)+k2(1); k3=k1(length(f1)+k2(lfunction [f,k]=sconv(f1,f2,k1,k2,p)f=conv(f1,f2);k0=k1(1)+k2(1);k3=k1(length(f1)+k2(length(f2)))k=k0:p:k3;function heaviside(t,t0)f=(t-t0>0);n=-5:50; matlab分段函数调用出错函数是这样的:function f=am(x)if x>=0&x=0.01&x0.035f=-180/0.035*x+440;end 调用语句:for k=1:mxx(ii+1)=xx(ii+1)+am(a(k+1))*a(k+1)*cos(2*pi*k*ii/N)+am(b(k+1))*b(k+1)*sin(2*pi*k*ii/N);end其中的变量都是定 这货编的一个MATLAB程序一直死循环T function [xp,yp,xm,ym]=euler4(h)Vp=135;Vm=450;xp(1)=0; yp(1)=120;xm(1)=0;ym(1)=0;d(1)=120;T(1)=0;k=1; while d>0.1k=k+1; xp(k)=xp(k-1)+Vp*(yp(k-1)-ym(k-1))*h/d(k-1);yp(k)=yp(k-1)-Vp*(xp(k-1)-xm(k-1))*h/d( Matlab函数返回矩阵function I[n,k]=DCTTST()for n=0:1:3 for k=0:1:3 I[n,k]=cos((2.*n+1).*k*pi)/8; endend大家好,请问这个函数写法错在哪里?怎么改?谢谢! matlab中对一个矩阵所有的数进行循环判断,经过重新计算后存入AQI矩阵中.我的程序如下,不知道哪里错了.function AQI=nice(s,n,m)z=size(s);for h=1:z(2)for k=1:z(1)if (s(k,h)>=0)&(s(k,h)50)&(s(k,h)150)&(s(k,h)=0)&(m(k,h) 一道matlab不动点迭代求高手指点function [k,p,err]=fixpt(g,p0)P(1)=p0;tol=1.e-8;max1=50;for k=2:max1P(k)=feval(g,P(k-1));err=abs(P(k)-P(k-1));relerr=err/(abs(P(k))+eps);p=P(k);if(err MATLAB 自己写function K(N) 表示N! 如何用循环的方法运行K(1)+K(2)+K(3)+...K(20)? matlab创建function出错,代码:function basePS=functionbasePS(n)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heresyms tbasePS=zeros(1,n+1);for i=0:1:nif 0 求解释matlab程序啊,越详细越好,function [Rx2,Rx22] = cyclic_xcorr(Rx,P,k_len,tao_len)Rx2 = zeros(2*k_len*P-1,2*tao_len*P-1);for k = 1-k_len*P :k_len*P-1for tao = 1-tao_len*P :tao_len*P-1for n = 0 :P-1Rx2(k+k_len*P,tao+tao_len*P) = Rx2(k+k_l MATLAB程序段含义function out=b_fft(in) for n=1:1:64 out(n)=0; for k=-32:1:31 out(n)=out(n)+in(k+33)*exp(-1*sqrt(-1)*2*pi*k*(n-33)/64); end end Matlab程序,请问错误在哪?function s=lag(x,y,t) %采用符号推导,这样可以给出插值具体公式 syms p; %读取x向量维数 n=length(x); s=0; for(k=1:n) la=y(k); %构造基函数 for(j=1:k-