how to use plot3 for x,y,z, while plotting.. it shows nothing

1 次查看(过去 30 天)
i have to use plot3 function to plot x,y,z
x=[1]
y=[2]
z=[3]
plot3(x,y,z)
while i plot this , nothing appears on the plot.. how to plot this in 3d

采纳的回答

KSSV
KSSV 2018-3-9
plot3(x,y,z,'.r')
As you have single data..you need to use a marker.
  3 个评论
Stephen23
Stephen23 2018-3-9
@Veera Kanmani: you cannot plot points separately and then connect them with a line afterwards. You will need to plot all of the points at once. You can do this trivially by putting all of the points into matrices. See the plot documentation for examples of this.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by