Code


Snake – The classic snake game built in MATLAB. To run, simply download the script linked, then run in your MATLAB console.

Untitled-1

Sorting Visualization – Visualizes sorting algorithms. You can use your own image or a matrix with random RGB values. Currently has the following algorithms: bubble sort, insertion sort, brick sort, and selection sort.

RGB values are sorted on perceived brightness (darkest on the left and lightest on the right), operationalized using the following formula:

Brightness = sqrt(0.299*(R)^2 + 0.587*(G)^2 + 0.114*(B)^2)