How do I quiver plot magnetic field
Mostra commenti meno recenti
I have the following code that will calculate the magnetic field from a stationary dipole in three dimensions:
function B = B_function_quiverplot(x,y,z)
%r_b vector from origin to gradiometer reading %r_m vector from origin to magnetisation mass %m is the magnetisation vector %% b0=[-.4e3 18.3e3 -45.8e3]; %earth field in nT r=[x;y;z] const = 1.2566e-6/(4*pi); m=(.2/const)*b0 %Evaluating B
dot_rm=dot(r,m); norm_r=norm(r)
B= const*( ((3*dot_rm)/(norm_r^5))*r - (1/(norm_r^3))*m)
end
How can I produce a 3-d quiver plot of the vector field?
Risposte (1)
José-Luis
il 4 Lug 2017
0 voti
4 Commenti
matlabkid602
il 4 Lug 2017
José-Luis
il 4 Lug 2017
"Not getting good results" is a poor descriptor of the issues you are facing.
- What do you have?
- What do you want?
matlabkid602
il 4 Lug 2017
José-Luis
il 5 Lug 2017
That's what quiver3() does.
Categorie
Scopri di più su Vector Fields in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!