How to Plot Single Points in 3D Space Using MatLab?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
hitachiin69
Messages
2
Reaction score
0
This might be an unusual thread but is that i really can't figure out how to plot single points in 3D space using MatLab.

I need to plot the points (1,0,0) , (0,1,0) and (0,0,1)
 
Physics news on Phys.org
hitachiin69 said:
This might be an unusual thread but is that i really can't figure out how to plot single points in 3D space using MatLab.

I need to plot the points (1,0,0) , (0,1,0) and (0,0,1)

Do you mean something like that?
View attachment 1966

You can do it,by using the following commands:

>> plot3(1,0,0, '*',0,1,0,'*', 0,0,1,'*')
>> zlim([-2 2])
>> ylim([-2 2])
>> xlim([-2 2])
 

Attachments

  • plot.jpg
    plot.jpg
    11.9 KB · Views: 118