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

Click For Summary
To plot single points in 3D space using MATLAB, the command `plot3` can be utilized effectively. For the specific points (1,0,0), (0,1,0), and (0,0,1), the command would be `plot3(1,0,0, '*', 0,1,0,'*', 0,0,1,'*')`. Additionally, to set the limits for the axes, the commands `zlim([-2 2])`, `ylim([-2 2])`, and `xlim([-2 2])` can be used to ensure the points are displayed correctly within the desired range.
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: 83

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K