Error Using Sym/Limit
显示 更早的评论
Im having an issue on my homework, When i type this:
hold off
syms x
p(x) = abs(x^2 - 5*x + 6)
ezplot(p(x),[1,4])
dq(c,h)=(p(c+h)-p(c))/h
limit(dq(2,h))
vpa(dq(2,h))
limit(dq(2,h),'left')
limit(dq(2,h),'right')
The last two lines
limit(dq(2,h),'left')
limit(dq(2,h),'right')
Give me an error stating that the limit point must be scalar. Im honestly unsure what that means and im not sure how to write this so any help would be greatly appreaciated, thanks!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!