The best way to learn matlab programming is to go through the basics problems along with the code. It allows us to understand the matlab language in a better way.
This, matlab_for_beginners tutorial is divided into different parts. Just go one by one through each part. After completion of all parts you will have good basic knowledge of matlab.
All The Best.