Learning Matlab

This page organizes my posts for beginners and advanced users. If you follow the chosen order, you should gradually get a good understanding of how Matlab works and what you can do with it. Examples are provided everywhere to make your learning more entertaining. I update this list regularly with new posts. I hope to slowly build a coherent ensemble of ressources to learn Matlab very efficiently.


  1. A short introduction on the past, present and future of numerical computing should set the stage for you.
  2. Overview of the language : What is Matlab good for and what it is not (to be done).
  3. To start you should first launch matlab and see what you can do with the command line.
  4. Learn how to use the editor.
  5. Learn on how to display data on a figure.
  6. But, hold on, what is a variable, exactly?
  7. Look into what are the various datatypes available to you.
  8. The few mathematical operators you need to know.
  9. The various types of memory in a computer and how Matlab uses them.
  10. Learn how to get some help.
  11. Using conditional control flow.
  12. Using loop control flow, like for loops, or while loops.
  13. Logical operations and logical indexing in matlab.
  14. Spend some time on what it means to use an interpreted language, like Matlab.
  15. Limit your memory usage and preallocate.
  16. Creating functions and sub-functions.
  17. Managing a Matlab session and understanding variables scope.
  18. Using strings in Matlab.
  19. Using symbolic expressions in Matlab (to be done).
  20. Loading and saving binary files (to be done).
  21. Loading and saving text files (to be done).
  22. Matlab provides you with a set of functions. Some are built-in, some not. You need to understand what it means to you.
  23. This is very important to your matlab future : learn how to use the profiler.
  24. Look at some of my tips to write clear code that anyone can understand in Matlab.
  25. Debugging your program.
  26. What are Matlab toolboxes? (to be done).
  27. Online ressources to learn Matlab, apart from this website (to be done).

MATLAB Intermediate

  1. Look into how to make advanced plots in Matlab.
  2. How to convert between data types.
  3. Structure and cells can become handy in many cases.
  4. Dynamic field names and structure (to be done).
  5. If you have never heard of recursive functions, you should read my post on it.
  6. Learn about how Matlab organize its memory usage and the apparent lack of pointers.
  7. TIC/TOC versus the profiler (to be done).
  8. What is a short-circuit operator?
  9. Columns and Rows are not the same in matlab. This will teach you a little on organization of arrays.
  10. Learn how to use handles in your programs.
  11. Adding documentation to your code (to be done).
  12. Managing errors with try and catch blocks.
  13. How to organize your files to grow your program.
  14. How to encrypt your M-file to share your code in a safe way.
  15. Overloading functions in Matlab (to be done).
  16. Learn how to use GUIDE to make interfaces : Using the Video tutorial or the Text tutorial.
  17. Passing data from GUI to GUI (to be done).
  18. GUIDATA is quite a counterintuitive function. I explain it all.

MATLAB Advanced

  1. The timer object (to be done).
  2. The M-code created by the GUIDE is a little bit mysterious. This explains it all
  3. Take a look at some important point if you wish to share your interface with others
  4. Making interfaces without the GUIDE.
  5. Before you go in very advanced GUIs, look into what has done some programmers to do Games in Matlab.
  6. Using pointers in Matlab.
  7. An introduction to Object oriented programming in Matlab.
  8. Inheriting classes (to be done).
  9. Defining class attributes (to be done).
  10. Matlab thread and Java thread.
  11. Organizing large datasets in Matlab.
  12. Store large datasets in Matlab.
  13. File/folder organization of Matlab distribution (to be done).
  14. Advanced usage of figure parent and children.
  15. Testing your code (to be done).
  16. Loading binary files in Matlab (to be done).
  17. Matlab and MultiThreading (to be done).
  18. Using the graphic card (GPU) to do processing (to be done).
  19. Deploying your Matlab application out of Matlab (to be done).
  20. Distributing your deployed code.

5 Responses to Learning Matlab

  1. Glenn says:

    This is a great blog. I’ve been looking to brush up on matlab and you cover everything clear an concisely. Great job, I can’t wait to see the final product.

  2. mangal das says:

    good job ,you have described pca in a nice manner. full marks!!!

  3. M.RAVINDER says:

    good job and great information is available for MATLAB beginners.

  4. PLuz says:

    This blog is outstanding! Many, many, thanks. I just recently started learning MatLab and this blog is top on my bookmarks. Thank you for your time and work. Can’t wait for the “to be done” posts are concluded.

  5. Ali Ibrahim says:

    Dude , you are awesome !! thanks for the great effort ..

Leave a Reply