function bookfig6() % Simple script to generate Figure 6, 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? Just type "bookfig6;" % Clear screen clf; close; R = 100; x = 0:0.01:5; for i = 1:length(x) EC(i) = R * (4*log(2)) * ((2*pi)^(-2/3)) * x(i) * exp(-.5 * (x(i)^2) ); end plot(x,EC); % Beautify image xlabel('Seuil de score Z: Z_{t}'); ylabel('EC attendue pour image après application du seuil');