Matlab程序编写和出图u(x,t) = 10 + 5*cos(2*pi*t/T) + (1 + cos(2*pi*t/T))*x/5 + sum{n=1 to n=N} ( (10/pi*n [(T/2*pi) * sin(2*pi*t/T) - (25/(pi*n))^2 cos(2*pi*t/T)] * sin(pi*n*x/25) )I need it once with T=1 and once with T=365.Also for N you can

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 08:44:18

Matlab程序编写和出图u(x,t) = 10 + 5*cos(2*pi*t/T) + (1 + cos(2*pi*t/T))*x/5 + sum{n=1 to n=N} ( (10/pi*n [(T/2*pi) * sin(2*pi*t/T) - (25/(pi*n))^2 cos(2*pi*t/T)] * sin(pi*n*x/25) )I need it once with T=1 and once with T=365.Also for N you can
Matlab程序编写和出图
u(x,t) = 10 + 5*cos(2*pi*t/T) + (1 + cos(2*pi*t/T))*x/5 + sum{n=1 to
n=N} ( (10/pi*n [(T/2*pi) * sin(2*pi*t/T) - (25/(pi*n))^2 cos(2*pi*t/T)] *
sin(pi*n*x/25) )
I need it once with T=1 and once with T=365.Also for N
you can give any number,like 100,then 200,then 300 and so on.that will
create an animation,t=1000

Matlab程序编写和出图u(x,t) = 10 + 5*cos(2*pi*t/T) + (1 + cos(2*pi*t/T))*x/5 + sum{n=1 to n=N} ( (10/pi*n [(T/2*pi) * sin(2*pi*t/T) - (25/(pi*n))^2 cos(2*pi*t/T)] * sin(pi*n*x/25) )I need it once with T=1 and once with T=365.Also for N you can
% 定义符号变量
syms x t
syms T n N


% 函数表达式
u = 10 + 5*cos(2*pi*t/T) + (1 + cos(2*pi*t/T))*x/5 + symsum( (10/pi*n * ((T/2*pi) * sin(2*pi*t/T) - (25/(pi*n))^2 * cos(2*pi*t/T) ) * sin(pi*n*x/25) ), n, 1, N);

% 依次对T和N取不同值绘制曲面
for T1 = [1 365]
for N1 = 100 : 100 : 500
ezmesh( subs(u, {T,N}, {T1,N1}) )
title( sprintf('T = %i, N = %i', T1, N1) ) % 修改图形标题
drawnow % 更新绘图
end
end

Matlab程序编写和出图u(x,t) = 10 + 5*cos(2*pi*t/T) + (1 + cos(2*pi*t/T))*x/5 + sum{n=1 to n=N} ( (10/pi*n [(T/2*pi) * sin(2*pi*t/T) - (25/(pi*n))^2 cos(2*pi*t/T)] * sin(pi*n*x/25) )I need it once with T=1 and once with T=365.Also for N you can matlab中编写程序 f(x)=0.5x,x 用matlab编写一下y=10/x的程序和图像, matlab画图高手进,不会画这个函数图已知X(t)=e^(-2t-1),要绘出x(-t-2),x(t/5+2),5x(3t+2)的波形,求编写的程序 matlab程序绘出一个公式的图形e^-2t * cos(3*pi*t)*[u(t)-u(t-3)] 程序如下 t=-1:0.01:4;m=(t>0);n=(t>3);x=exp(-2t)*[cos(3*pi*t)*(m-n)];plot(x,t);axis([-10,10,-2,5]);老提示 x=exp(-2t)*[cos(3*pi*t)*(m-n)];|Error:Missing MATLAB operator.公 怎么编写这个matlab函数 X(t)=r(t)-r(t-2)-3u(t-3)+u(t-5) 并且显示图像?u(t)是单位阶跃信号 r(t)是斜坡信号 关于matlab的FFT计算问题思路如图,求人帮忙看看怎么编写这个程序,在计算中Z是个常数,但是在离散的傅里叶变换还要考虑二维的x和z,只知道初值u(0,z),假设为7,其他除了x和z的都可以假设为一个 谁能帮忙用MATLAB编写程序:求f(x)等于t乘以e的负t次方在-3到4上的定积分用MATLAB编写 matlab求一组数据的均值和标准差.数据包含x,y,t,这如何编写, f(x)=1+x+x^2/2!+x^3/3!+...+x^n/n!编写matlab程序计算,x和n为输入值 matlab 编写程序计算f(x)=x>0,x^3+5;x 我要用matlab对x(t)=exp(-t)u(t)做FFT的频谱分析,程序应该如何写? 编写一段MATLAB程序,绘制出二元函数z=2sinxsinyy/xy三维网格线图,要求如下:(1)x,y的取值范围为-9≤x≤9,-9≤y≤9;(2)x,y每隔0.5取一个点;(3)图形的线型和颜色由MATLAB自动设定. 编写MATLAB程序实现多项式拟合 在Matlab里编写程序绘制下图: 用matlab画x/(1+x.^2)的图像怎么编写程序没有图像啊! 求数学大神解答几道MATLAB程序题.还有推荐几本学它的书,我想学但太杂无从下手.题在备注.用matlab程序编写画出圆锥面x=usinv,y=ucosv,z=u的图形.用控制语句编写一个M文件,实现某种运算,例如计算 请matlab高手教教 matlab编写一段程序,画出函数y=x^3*e^(-x^2),-1