%% With these few lines we test Matlab's publishing capacities %% 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 %% 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) % %% % % % \begin{tabular}{|c|c|} \hline % $n$ & $n!$ \\ \hline % 1 & 1 \\ % 2 & 2 \\ % 3 & 6 \\ \hline % \end{tabular} % %