Matlab has a wealth of tutorials online. They are excellent and comprehensive IMO. Start going through some of it and you'll start getting the hang of it.
http://www.mathworks.com/help/techdoc/learn_matlab/bqr_2pl.html
Here is a brain teaser I came across recently.
Ten prisoners are arranged single file in a line. They are sorted so that the shortest prisoner (prisoner #1) is in the front, and the tallest prisoner (prisoner #10) is in the back. The are all looking forward (in the direction of #1). They...