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 here it is! In this post, you will find a video tutorial to get started with interfaces in Matlab in 5 minutes!
This post marks the one year existence of this blog. I started writing in the hope to help folks get started with Matlab and also help rise the general quality of Matlab codes. Traffic have risen steadily in the last year as we are touching 900 pages per day of regular traffic for the first time today. Traffic, so far, has seemed to be doubling every 3 months! Whether I meet my goals, I don’t know, but at least this blog seems useful! For today, I chose a subject that fits into that anniversary context as it deals with how to package your Matlab programs for others.
Although Matlab is often used to quickly prototype ideas, professional applications can be done with Matlab. You can, if you want, create high-quality interfaces that benefits from the great calculation engine of Matlab. I found little help on the Internet on that subject (except for Yair’s excellent blog) so I thought it was a good occasion to help filling in the gap. In this post I talk about how to distribute your compiled application to colleagues/clients/friends in a very professional fashion.
Organizing your code is something that is absolutely crucial if you wish to grow your code base, especially if you wish to keep your code for a long time and/or pass it on to new programmers. There are multiple ways to do this in Matlab. In this post, I talk about these as well as some of the basic principles you must keep in mind when you organize your code.
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 only a few experts actually understand all of the details. In this post, I make an analogy between computer and human memory to explain the basics of both. This leads me to dive into the core of both computers and human minds as these are deeply intermingled.
You know that feeling, I am sure. You know that you should learn this thing, that your current set of knowledge is limiting what you can do, that it will be so much easier once you have learned it. Still you are comfy in your current set of skills. Your brain is the lazy culprit. If you know what I am talking about, STOP that and STOP using the GUIDE to make interfaces in Matlab. It’s time to jump ahead and do the real thing. Trust me, I have been there. Read on and fly…
Before we move back to Matlab, I am very happy to announce, for the new year, that Matlabtips.com got itself a professional illustrator. We are now well equipped to fulfill our mission : Make learning Matlab easy and entertaining. Among my resolutions for new year, there is one to make tons of new posts (illustrated this time with original drawings!).
As I discussed already several times, Matlab has supposedly no real equivalent to the C pointer available to you. This is so due to a design choice from Mathworks. The entire language is organized to avoid pointers. Even so, there are occasions where a pointer is really what we need, like when you are dealing with very large datasets that take nearly the entire memory. In this post, I first introduce you to the world of pointer and then shows you how to use them in Matlab for real. Continue reading
Today I am going to present a technique that I have used extensively to deal with figures. I have never seen it named before or even presented anywhere on the web so I decided to call it “Child Swapping” (edit : Yair from Undocumentedmatlab rightfully pointed out that this technique is often called re-parenting. I like my own name too though so I kept the post title). I believe this technique is very useful when you have to manipulate figure windows, reuse them in a different context or concatenate them together. So if I managed to tickle your curiosity, read on. Continue reading