Pathhacker

0 64 0
MATLAB code to visualize 3D vector field

MATLAB code to visualize 3D vector field

Syms x y z
F=input(‘Enter the vector as I,j,k order in vector form’);
P=inline(vectorize(F(1)),’x’,’y’,’z’);
q=inline(vectorize(F(2)),’x’,’y’,’z’);
r=inline(vectorize(F(3)),’x’,’y’,’z’);

x=linspace(-1,1,5);
y=x;
z=x;
[X,Y,Z]=meshgrid(x,y,z);
U=p(X,Y,Z);
V=q(X,Y,Z);
W=r(X,Y,Z);
quiver(X,Y,Z,U,V,W,1.5)
axis on
xlabel(‘x’);
ylabel(‘y’);
zlabel(‘z’);  

Tags

MATLAB code to vizualize the non existence of limit and discontinuity of given function MATLAB code to vizualize the non-existence of limit and discontinuity…
by sravan
0 64 0
Your nameYour emailYour text

Leave a Reply

Log in
Register
Send message