我按照书上的代码打报错了,请问各位问题出在哪儿书上代码是
f=sym('sin(pi/4*t)') ezplot(f,[-16,16])
matlab现在不推荐用ezplot,建议改为fplot:
fplot('sin(pi/4*t)',[-16,16])
或
f = str2sym('sin(pi/4*t)'); fplot(f,[-16,16])
ezplot('sin(pi/4*t)',[-16,16])