How to make the arrow smaller quiver

Hi, so I'm plotting vector in 3d using quiver, but I get something like this.
The code I'm using is the following :
quiver3(0,0,0,B(1),B(2),B(3),'r')
where B is :
0.2512
0.0080
0.3831
I'm trying to get something like this, where the head of the arrow isn't too wide.
quiver3(0,0,0,1,1,1,'b')
Thank you

 Accepted Answer

The arrow head looks wide because the scales of the axes are skewed.
When you modify the axis, you can see that the arrowhead is narrow compared to the length of the vector -
B = [0.2512
0.0080
0.3831];
figure
quiver3(0,0,0,B(1),B(2),B(3),'r')
%Example 1 - Set the axis limits to be the same
axis([0 0.4 0 0.4 0 0.4])
figure
quiver3(0,0,0,B(1),B(2),B(3),'r')
%Example 2 - Use the same length for the data units along each axis
axis equal

2 Comments

daisy
daisy on 8 Jan 2024
Moved: Cris LaPierre on 8 Jan 2024
Thank you, your insight is appreciated ♡
You're welcome!

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2023b

Community Treasure Hunt

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

Start Hunting!