Info
此问题已关闭。 请重新打开它进行编辑或回答。
why my plot not being displayed?
1 次查看(过去 30 天)
显示 更早的评论
even when i run simple code like plot(x,y),my matlab is not displaying the figure.it is giving empty fig window.
2 个评论
Walter Roberson
2019-7-16
Do your x and y have more than one finite point? If x and y are scalar, by default MATLAB does not provide any markers for the points.
回答(2 个)
Jan
2019-7-16
Try
plot(x, y, 'o')
to check, if x and/or y are scalars, which plot infinitesimal small dots only.
0 个评论
Star Strider
2019-7-16
If your code involves array division, remember to use element-wise division: ./ rather than /.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!