Create an m-script file to plot the following functions separately
显示 更早的评论
I am trying to plot the following function in Matlab. y=x^3+2x^2-6x with x having bounds of 0 to 30 (0:30)
I am using the following code and below is the error message I am receiving x=0:30; >> plot(x,'x.^3+2x.^2-6x'),grid Error using plot Error in color/linetype argument
If someone could please help me to fix this error and/or see the error in my function I would appreciate it.
采纳的回答
更多回答(1 个)
Rohit Naik
2021-8-28
0 个投票
X = [-10:10]; Y = tan^-1(X) Plot(X,Y)
1 个评论
Walter Roberson
2021-8-28
MATLAB does not support that notation for arctangent
类别
在 帮助中心 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!