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

3 Ansichten (letzte 30 Tage)
Veera Kanmani
Veera Kanmani am 9 Mär. 2018
Kommentiert: Veera Kanmani am 9 Mär. 2018
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

Akzeptierte Antwort

KSSV
KSSV am 9 Mär. 2018
plot3(x,y,z,'.r')
As you have single data..you need to use a marker.
  3 Kommentare
Stephen23
Stephen23 am 9 Mär. 2018
@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.
Veera Kanmani
Veera Kanmani am 9 Mär. 2018
@Stephen Cobeldick: thank you.. i will look into it

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by