You are on page 1of 1

clear all

close
clf
X = 1:10;
Y = (1:10);
[y,x]= meshgrid(X,Y);
//fx = 2*x.*y - 3*y.^2;
//fy = x.^2 - 6*x.*y;
fx = 2*x;
fy = 2*y;
figure(0);
// Field's intensity = arrows length
champ(X,Y,fx,fy)
figure(1);
// With bigger arrow heads //Field's intensity = arrows length
champ(X, Y, fx, fy, arfact=1.7)
// With bigger arrow heads // Field's intensity = arrows color
//clf
//gcf().color_map = jetcolormap(50);
figure(3)
//xsetech([0 0.5 0.55 0.5])
champ(X, Y, fx, fy, arfact=1.7)
gce().colored = "on";

You might also like