Why am I getting this error? 'Unrecognized function or variable 'poly2str'.'
显示 更早的评论
Every time I use the 'poly2str' function Matlab is saying its an unrecognized function or variable. I am following video tutorials on matlab basics and the code I am using has been provided by my lecturer, and he uses the exact same code in the video without any problems. The only thing is that the videos could be outdated as they are a few years old, so maybe is that the issue?
figure(2); clf reset
x2=-3:.1:5;
p=poly([-1 -2]);
px = polyval(p,x2);
plot(x2,px,'r:')
title(['Plot of polynomial with coefficients ',num2str(p)])
xlabel('x')
ylabel(poly2str(p,'x'))
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Animation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!