# 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.

### MATLAB Basics

Source : Image

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

### MATLAB Intermediate

Source : Image

1. Look into how to make advanced plots in Matlab.
2. How to convert between data types.
3. Look for rounding errors.
4. Structure and cells can become handy in many cases.
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. What is a short-circuit operator?
8. Columns and Rows are not the same in matlab. This will teach you a little on organization of arrays.
9. Learn how to use handles in your programs.
10. Managing errors with try and catch blocks.
12. How to encrypt your M-file to share your code in a safe way.
13. Learn how to use GUIDE to make interfaces : Using the Video tutorial or the Text tutorial.
14. GUIDATA is quite a counterintuitive function. I explain it all.

Source : Image

1. How to make Beautiful plots in Matlab.
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.
9. Organizing large datasets in Matlab.
10. Store large datasets in Matlab.
11. Advanced usage of figure parent and children.

### 8 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 ..

6. evergreeen says:

Very nice blog for beginners…

7. Govind Sankar says:

Thank you for this wonderful blog. I was hoping to have this in 1 pdf format the whole thing, so that it will be easy. But still excellent work. Kudos to you.

8. LP Guinard says:

Great blog, thanks a bumch! Such a shame I didn’t find this earlier, I’ve struggled in the past few months over much of this!

Only thing though, some parts feel incomplete. I don’t know if you plan to improve/complete what’s already there, but one thing that I’d like to read about is how one can write variables/data in a separate file, then open it again and use it in functions. This could be incredibly helpful 🙂