uniform EMTTOOL vee

EMTTOOL >> EMTTOOL > vec3d

vec3d

vector plot in 3d

Calling Sequence

vec3d(g,x,y,z)

Parameters

x,y,z

vector of rectangular coordinates of points to be plotted

g

vector of dimension (length(x),length(y),length(z),3) which gives magnitude and direction of vector field at each point of 3d space formed by x,y and z.

Description

vec3d(g,x,y,z) generates a vector plot of points in x,y,z and magniude and direction given by g. Used explicitly in functions emtcurl and emtgrad.

Examples

xyz=[1 2 3]; n=6;
x=0:2:10;
y=x;
z=x;
for i=1:length(x)
    for j=1:length(y)
        for k=1:length(z)    
            g=grad([x(i) y(j) z(k)]);
        end
    end
end
vec3d(g,x,y,z)

See Also

Author

uniform EMTTOOL vee