Monthly Archives: February 2012

Simple wxWidgets GUI Example

Over the last few days, I’ve been working on a project using wxWidgets as the GUI toolkit. The following program is a wxWidgets GUI example. It’s not the most elegant program, but relative to most of the examples I came … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | 2 Comments

LaTeX example

This text: produces this equation:   LaTex is used for the maths in Wikipedia, so it provides some useful documentation about it, which includes a long list of example expressions: http://en.wikipedia.org/wiki/Help:Displaying_a_formula

Posted in Uncategorized | Tagged , , , , , | Leave a comment

MATLAB GUI Example

This is an example program that myself and Richard Hayes created in our MATLAB GUI tutorial today. Thanks to all who attended. Here’s the source code:

Posted in Uncategorized | Tagged , , , , | 2 Comments

OpenGL / GLUT example program

This is a simple OpenGL example program using the GLUT toolkit for window creation and event management. This is the code used to create the above window: To compile this program with gcc, I used the following command: gcc -o … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Modulo patterns in C (PGM and PPM)

During one my Engineering Computing classes last semester, I was writing an example C program to create a PGM image file when I accidentally produced an interesting pattern. I had been using a simple function of the pixel coordinates x … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , | 2 Comments