## Debugging in Matlab

The first reported bug – Source : Wikipedia

You’ve just finished writing your latest and greatest Matlab program. You’re sure this program will solve all the world’s (or at the very least all of your) problems. Just as you run your program, you see the dreaded red error text. Looks like it’s time to do some debugging! In this post, I’m going to take you through some of the common types of errors you will see when developing your software and how to solve those problems. Of course, when you’re first starting out in Matlab, these errors seem a bit cryptic and can take some time to solve. After just a bit of practice, though, you will soon be able to quickly spot and correct your errors.

Posted in Beginners | 4 Comments

## Logical operations and logical indexing in Matlab

Nerd of all countries, stand up! Source : Image

In this post, we talk about logical operations but also how to use your Matlab skills to analyze your shopping expenses (Yes, we are all absolute nerds and love it).

You will learn how to use logical operations to search large data matrix very quickly. If you have never used logical operators in Matlab, this is a MUST-READ! Continue reading

Posted in Beginners | Leave a comment

## How and when to convert between data types

Confucius : Do not use a cannon to kill a mosquito – Source : Image

In this post, we talk about data types and extend on our previous post on the matter. You will learn how to convert between them but more importantly when and why you should consider such things.

As often, we delve into more advanced examples of data conversion that will be of interest to a large audience.  Continue reading

Posted in Beginners | 3 Comments

## ICA demystified

Demystifying the ICA black box – Source : Image

This post has been on the back of my mind for quite some time, ever since I wrote about Principal Component Analysis. Independent Component Analysis or ICA is an algorithm to extract underlying structure hidden in multi-dimensional datasets. As for PCA, It is fairly ubiquitous (including in Neuroscience). However, as opposed to PCA, getting an intuitive understanding of ICA is much harder and many persons use it as a magic black box (no offense, I have been there too). I won’t provide comments on any code as fastICA is already freely available in Matlab. My hope here is to facilitate the understanding of what ICA is and how it works.  Continue reading

Posted in Intermediate | 1 Comment

## Stucked? How to get some help.

How to get some help (Image source)

While my goal here is to help you out with Matlab and other data analysis endeavors, I can’t cover the vast number of problem you may encounter. Still, I can provide you with a general approach that should help you to solve most problems. That is the goal of this post. I think everyone should be interested in this one, both the Matlab gurus and the beginners.

Posted in Beginners | 1 Comment

## Mathematical operations in Matlab and the point

What’s the point in Matlab?

The point of this post is to talk about doing mathematics in Matlab. This is an extension of our previous post on Kickstarting Matlab. You will learn how to use all mathematical operators and get to understand your Matlab second best friend (after the profiler) : the point or dot operator. We also briefly talk a little bit about Matlab history. My only hope is that after this, you will get the point.

Posted in Beginners | Leave a comment

## Introduction to Object-Oriented Programming in Matlab

Object-oriented programming in everyday llfe.

In this long overdue post, I help you get started with Object Oriented Programming (OOP) in Matlab. We start with a little bit of history of OOP, talk about why and when this is useful and turn to few Matlab examples for you to get immediately started.

Posted in Advanced | 4 Comments

## How to share your figure in the cloud

Original blog illustration by Benedicte Rossi

Today is a special post for a new online tool that hold some very interesting future. It’s about a new online tool from plot.ly, a startup company in Montreal. I like their work a lot and decided it was worth giving them some little pushes as modestly as I can.

The idea is simple : Sharing your figures and plots in the cloud instead of sending good old screenshots.

Posted in Advanced, Beginners, Intermediate, Various | 3 Comments

## Recursive functions

Original blog illustration by Benedicte Rossi

In this post, I introduced you to the beauty of recursive functions. I believe that these are part of the “basic programming package” that anyone into coding should have been introduced to.

I quickly discuss the theory and their usage along with a few examples.  Continue reading

Posted in Beginners, Intermediate | 7 Comments

## The past, present and future of numerical computing

Original blog illustration by Benedicte Rossi

This post serves as an introduction to numerical computing as well as a nice overview of the current landscape of numerical calculation. I also present some of my perspectives on the future of the field which could raise general interest, even to long-time and experienced programmers. I don’t intend to be prophetic but I hope to, maybe, generate an interesting discussion on the topic.

Posted in Advanced, Beginners, Intermediate, Various | 5 Comments