Category Archives: Beginners

Here goes posts for beginners that just started or want to start learning Matlab

Function and sub-functions

Any code written in Matlab needs to be somehow organized. As you grow your program, it becomes essential to write functions. Functions are elementary pieces of computations that take inputs, process them and send the result out. As you can … Continue reading

Posted in Beginners | 3 Comments

A guide to guide : Video tutorial to start making interfaces

Some time ago, I made a post to help folks get started making interfaces with GUIDE, the interface designer provided by Matlab. It occurred to me that a video tutorial would convey a much better experience on this subject. So … Continue reading

Posted in Beginners, Making interfaces | 2 Comments

Computer vs human memory

Memory management is an essential skill that every programmer develops over time. To develop that skill you need to have a sense of how computer memory works. Surprisingly,  memory is not a simple thing. It is actually quite complex and … Continue reading

Posted in Beginners, Various | 18 Comments

Using strings in Matlab

The goal of this post is to introduce you to the usage of strings in Matlab and to help you loosen the knot… Continue reading

Posted in Beginners | 8 Comments

The art of vectorizing – Part 1

Vectorizing is the art of transforming a calculation done element by element into an operation on vectors. Here I start a serie of posts on how to vectorize your code. Continue reading

Posted in Beginners, Optimizing your code | 19 Comments

Preallocation is not an option

As any activity, programming does require that you follow some rules of good practice. In this post, I introduce you to the joy of memory preallocation. Continue reading

Posted in Beginners, Optimizing your code | 3 Comments

Understanding for loops…

This post is about two things. First, it is about Matlab and how to use for loop. Then it is about love and how to spam your girlfriend email address on valentine day. Continue reading

Posted in Beginners | 4 Comments

A variable ID card

Here I show that variables are like normal people. They have an ID card that is unique. On this path, I answear to this simple question : What is a variable? Continue reading

Posted in Beginners | 2 Comments

Making interfaces for beginners

In this post, I introduce you to good manners in Matlab programming and their inevitable counterpart : making interfaces to relief your colleagues from the burden of reading and learning all your code. Continue reading

Posted in Beginners, Making interfaces | 2 Comments

What IF?

Here I introduce conditional flow statements like if … else … end or switch … case … end. Continue reading

Posted in Beginners | 3 Comments