Algorithmic Trading in MATLAB : WFAToolbox

Today, I would like to welcome Alex from WFAToolbox who will present their latest trading tool in Matlab. 

Let us introduce you WFAToolboxMATLAB App that allows you to develop algorithmic trading strategies in minutes, not months. WFAToolbox was created for everyone who is interested in algorithmic trading, automated trading, or financial markets and investments in general and would like to use MATLAB to create and test their own trading strategies (trading robots).

Continue reading

Posted in Various | Leave a comment

Beautiful Plots in MATLAB

Today, Jesse Marshall returns to discuss visualization in Matlab.

Did you ever think MATLAB could make this? Neither did I!

Did you ever think you could make plots like these in MATLAB? Neither did I!

Why Visualize?

Smartphones, tablets, wearables, smart-toasters and 8 billion other ‘devices’ have swamped us in data. This explosion of big, and sometimes bad data has led to seemingly endless charts that all compete for our rapidly shrinking attention. Scientists and statisticians are now tasked with explaining complex analyses and subtle concepts rapidly, in a compact, meaningful and compelling way. This means maximizing the perceptual differences of the points you want to make in the graphics so you can minimize the time a reader has to spend digesting your analysis.

Continue reading

Posted in Intermediate, Learning Matlab, Optimizing your code | 6 Comments

Rounding errors


Ariane 5 first launched rocket famously exploded because of a numerical error – Source : Wikipedia

I would like today to talk about one very important concept that is often overlooked when you learn to use a computer for data analysis : Rounding errors. In Matlab as in other languages, numbers are represented as a series of 0 and 1 in a way that depends on its type (double or int16, for instance). Each number type is inherently designed to provide a certain precision. Because of this, making mathematical operations on these numbers behave differently than what you expect from simple mathematical formulas. In this post, I hope to allow you to identify these behaviors and avoid all associated problems.

Continue reading

Posted in Beginners | 2 Comments

What is Matlab – Where and Why to Use It

What is Matlab All About - Source: Image

What is Matlab All About? – Source: Image

If you’re reading this, you must be interested in learning what Matlab is, Lucky for you, Matlabtips is a fantastic resource to aid in learning the Matlab language and the multitude of functionality that comes with it. But first, we must answer these simple but important questions :

What is Matlab? Why would  you use it? Where is it commonly used?

Continue reading

Posted in Learning Matlab | 3 Comments

Online resources to learn Matlab


No need to buy a book to learn Matlab – Source : Image

While we here at Matlabtips appreciate you visiting our blog, we would like to take one post and introduce a few other great online resources for beginners and advanced users alike to learn more about Matlab. We hope that you can use other sites for help when you are stuck or to just pick up some new Matlab skill.

Continue reading

Posted in Learning Matlab | 7 Comments

There are two types of data scientists – those who cluster and those who don’t

Today, we are lucky to have Jesse Marshall as a guest blogger on data analysis. Jesse is a PhD student at Stanford, working on analyzing the collective behavior of hundreds of neurons as they process information in the living brain. 


A cluster of galaxies? Or random chance? – Source :

Humans have trouble accepting randomness. We search for patterns, trends and correlations in all aspects of life, and we do it for good reason. Identifying patterns lets us learn from our mistakes and predict the future. Clustering algorithms are exploratory data analysis tools used to categorize a set of observations into a few discrete classes, or, clusters, that share common features. Cluster algorithms only need four ingredients: a set of objects,a list of quantitative or qualitative descriptors of these objects, and a metric that you can use to compare these objects, based on their features. Then you try to divide the data into a specified number of clusters and see what happens.

Continue reading

Posted in Intermediate | Tagged , , , , | Leave a comment

Error Handling – Using Try and Catch

Try and Catch! – Source: Image

Typically when using Matlab, if the program encounters some bug, you will hear the system bell and see the dreaded red text show up in the command window. So what do you do if you absolutely need your programs to run without error? Having a program crash is unacceptable. You must implement error handling within your code.

Continue reading

Posted in Advanced | Leave a comment

Variable Scope: Memory Spaces in Matlab

Every variable has a scope or is it the opposite? - Source: Image

Every variable has a scope or is it the opposite? – Source: Image

For this post, we are glad to welcome Nicholas as a contributor to If you are interested in writing a guest post, please don’t hesitate to contact us

In this post, we talk about variables. In particular, we will explain where variables “sit” in memory depending on where you declared it (within a script or a function). This is a very important post if you are learning the language.

Continue reading

Posted in Beginners, Learning Matlab | 1 Comment

Happy new 2015

Happy new year coding in 2015 - Source : Image

Happy new year coding in 2015 – Source : Image

It is an established tradition that blogs will look back on new year and discuss past achievements. I also felt it was a good opportunity to share with you some results from this website statistics and suggest what the next year will be like.

Continue reading

Posted in Various | 1 Comment

Auto-contrast: an optimization example where Matlab beats Matlab


An auto shown in high contrast – Source : Image

For this post, we are glad to have Thierry as a guest blogger. He talks about an optimisation example he recently encountered that is a good indirect example of ‘inlining‘.

As my first post here, I will first describe a standard “auto-contrast” method with some optimizing hints. I will then try a more powerful one, and hit a situation where the buit-in Matlab function (quantile) can be beaten by a simple Matlab script.

Continue reading

Posted in Optimizing your code | Tagged , , | Leave a comment