Along with advocating the pure beauty of math, parts of my blog may be about praising the pure awesomeness of MATLAB. I will say a lot more about why I have learned to love it so much later. What I will need to make these points is a decent way of performing syntax highlighting. Therefore, I gave the WP-syntax plugin a try which supports syntax highlighting for many languages, including MATLAB.

This is what it turns out to look like:

% test F = fft(eye(4)); |

Line numbers can be added too:

1 2 3 4 5 6 7 8 9 10 11 | % eyecandy demo: OpenGL rendering of PEAKS function using phong shading [X,Y,Z] = peaks(99); figure(1); clf; surf(X,Y,Z); axis vis3d; colormap copper; shading interp; lighting phong; light; camlight; |

however they do not render very nicely…

The result of the last script would look like that: