MATLAB How to add normal vectors/quivers to sphere in matlab?

Click For Summary
To add normal vectors or quivers to a sphere in MATLAB, first ensure the sphere is defined with its center and radius. Use the quiver3 function to plot the vectors, specifying the coordinates for the sphere's surface. It's important to calculate the normal vectors at each point on the sphere's surface to ensure they are correctly oriented. The MATLAB documentation provides examples that can help clarify the implementation. Following these steps will allow for the successful addition of normal vectors to the sphere.
goonking
Messages
434
Reaction score
3
so I got my sphere, centered at (1,-2,0) with radius 3

upload_2015-12-20_21-49-21.png


how do I put normal vectors/arrows onto my sphere's surface?
I tried quiver3(x,y,z)
 
Physics news on Phys.org

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 16 ·
Replies
16
Views
6K