function [a] = bookfig1() % Simple script to generate Figure 1, chapter 14 WITHOUT SPM! Just Matlab % Book: Human Brain Function. Academic Press, 2nd edition, 2003 % Authors: Frackowiak, Friston, Frith, Dolan, Price, Zeki, Ashburner, and Penny. % Script source: http://www.poirrier.be/~jean-etienne/presentations/rft/ % How to run it? "mymatrix = bookfig1;" % Clear screen clf; close; % Seed random number generator seed = 5; randn('seed', seed); % Generate a 100 by 100 random map a = rand(100, 100); % Display map h = imagesc(a); % Beautify image set(gca,'YDir','normal'); colormap(gray); ylabel('Position du pixel en Y'); xlabel('Position du pixel en X');