求MATLAB大佬 这个应该怎么解决

symstf;f=sym('heaviside(t)');F=fourier(f);subplot(2,1,1);ezplot(f,[-0.5,0.5]);subplot... syms t f;f=sym('heaviside(t)');F=fourier(f);subplot(2,1,1);ezplot(f,[-0.5,0.5]);subplot(2,1,2);ezplot(abs(F),[-6,6]);hold on;t=-0.01:0.0001:0.001;f=pi*(t==0);plot(t,f);axis([-6,6,-0.5,3]);
警告: Support of strings that are not valid variable names or define a number will be
removed in a future release. To create symbolic expressions, first create symbolic
variables and then use operations on them.
> In sym>convertExpression (line 1536)
In sym>convertChar (line 1441)
In sym>tomupad (line 1198)
In sym (line 177)
展开
 我来答
jimtien
2019-06-24 · TA获得超过7651个赞
知道大有可为答主
回答量:2146
采纳率:88%
帮助的人:1079万
展开全部
改成 f=heaviside(t);
已经定义t,f为符号变量了,不需要sym()
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式