Error dividing polynomials in plot
2 次查看(过去 30 天)
显示 更早的评论
Trying to plot
from 3 to 10 but the graph shows blank. The numerator and denominator plot seperately so I think I must be telling matlab to divide in the wrong way. Here is my code:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/202017/image.png)
x3 = linspace(3,10,100);
piot(x3,(2*x3+1)/((3*x3-1).^(1/3)))
0 个评论
采纳的回答
更多回答(1 个)
madhan ravi
2019-1-29
编辑:madhan ravi
2019-1-29
You just have to put ./ instead of / , it’s called element wise operation in MATLAB see https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html .
Remark: plot not piot.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!