MATLAB: How to use plot3 for x,y,z, while plotting.. it shows nothing

3d plotsplot3

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

Best Answer

plot3(x,y,z,'.r')
As you have single data..you need to use a marker.