MATLAB Game – Minesweeper 1.0

In undergrad, I worked in my university’s media company. They made everything: the website, the school newspaper, and the radio. The entire operation was (and probably still is) run exclusively on Macs, so I became a convert. To me, there really isn’t too much difference between Mac and PC because the majority of programs can be found on either platform. All you need do is get used to how it drives, and I just found myself drawn to the organizational capability of spaces.

However, there is one program which I have yet to find its Mac equivalent: Minesweeper. It’s one of those things that you don’t realize you miss until it’s gone. And so, in an effort to control my need to click on squares, I threw together my newest MATLAB game. »

MATLAB – Sudoku Solver Rev. 2.0

Update: I found another puzzle that breaks the code, click here for Revision 3.0!

I never claimed that my Sudoku Solver worked for every puzzle. In fact, it was pretty careless of me to post the code checking it against only two puzzles. And for those two puzzles, it worked just fine.

Two weekends ago, I went to Barnes and Noble, typed in one of the harder puzzles, and found out that my code broke. Oops. More »

MATLAB – Ignoring Plots in a Legend

Plotting in MATLAB can be interesting. Whichever you choose to plot first will end up at the back of the figure with all the plots that come after on top of it. Because of this, I like to put patch plots in the back (the red and blue between the black outline) and then plot the outlines after. The result is what you see above. More »