答案:第一个代码:
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中输出