Info
此问题已关闭。 请重新打开它进行编辑或回答。
Math function and plotting
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm trying to plot that function y. I have matrix 1x11 x, then I think I should have 1x11 y. But I don't know why I only have one value of y. Please tell me why I'm wrong. Thank you.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/275198/image.png)
0 个评论
回答(1 个)
James Tursa
2020-3-5
You need to change that matrix divide operator / to an element-wise divide operator ./ with the dot.
1 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!