当前位置:编程学习 > Matlab >>

用matlab创建数列 an=n^4 1<=n<=50 跪求代码!急急急!!!! 做出函数 f(x)=1/(1+x^3)的图像!!!!

答案:第一个代码: t=1:50; an=zeros(1,50); for n=1:50 an(n)=n^4; end plot(t,an); grid on; 第二个代码 clc;clear all; x=1:50; fx=zeros(1,50); for t=1:50 fx(t)=1/(1+t^3); end plot(x,fx); grid on;

上一个:如何将以下程序改成能在matlab中运行?是matlab6.5的 邮箱280104434@qq.com
下一个:matlab中输出

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,