With these few lines we test Matlab's publishing capacities
Contents
Step 1: Perform computations
We perform the following operations: [x,y] = meshgrid(0:0.1:1,0:0.1:1); z = sin(2*pi*x).*cos(pi*y/4);
[x,y] = meshgrid(0:0.05:1,0:0.05:1);
z = sin(2*pi*x).*cos(pi*y/4);
%
Step 2: Produce some graphics
figure(1),clf mesh(x,y,z)
figure(1),clf mesh(x,y,z)
Step 3: More graphics
figure(2),clf h=surf(x,y,z) colorbar
figure(2),clf h=surf(x,y,z) colorbar
h = 530.0049
Play with transparency
figure(3),clf alpha(h,x) pause(5) alpha(h,z) pause(5)
alpha(h,x) pause(1) alpha(h,z) pause(1) % a=ones(size(z)); % a(1:5,1:5)=0.99; % alpha(h,a) a=ones(size(z)); a(1:5,1:5)=0.99; alpha(h,a) %