最近在作函数绘图,顺便将matlab的代码附上
syms t;
%y = 2/3*exp(-t/2)*cos(sqrt(3)/2*t);%定义符号函数
y = sqrt((1-t)/(1+t));
subplot(1,2,1);
ezplot(y,[-1,2]);
grid;
plot(x,y);
本文分享了使用Matlab进行函数绘图的经验,包括定义符号函数及绘制2D图形的具体代码示例。通过这些示例,读者可以了解如何在Matlab中实现常见的数学函数可视化。
最近在作函数绘图,顺便将matlab的代码附上
syms t;
%y = 2/3*exp(-t/2)*cos(sqrt(3)/2*t);%定义符号函数
y = sqrt((1-t)/(1+t));
subplot(1,2,1);
ezplot(y,[-1,2]);
grid;
plot(x,y);
3667
4万+

被折叠的 条评论
为什么被折叠?