Integer and data representation in Matlab
Number formatting can be crucial when presenting data. While a simple topic, Matlab has provided many built in commands that can make your analysis easier. This tutorial will cover round, fix, ceil,...
View ArticleVectorization in Matlab Not Always Necessary
What separates Matlab from many other programming languages is the ability to vectorize code. Vectorization allows a programmer to write code that is more intuitive, more concise, and often faster...
View ArticleManaging Your Search Path in Matlab – Part I
Management of your search path in Matlab is an important skill that every Matlab programmer should have. Your search path is the ordered set of directories that Matlab uses to find a function that you...
View ArticleManaging Your Path in Matlab – Part II
In the last article I wrote about managing your path in Matlab, I covered some of the functions that deal with the search path, including path, matlabroot, addpath, rmpath and genpath. These functions...
View ArticleSending messages with sendmail
When running long code streams, waiting in front of the computer watching the program run can be excruciating. Sometimes I find myself doing this if I do not know how long the code will run, or if...
View ArticleSorting data in Matlab
While you are often working with matrices (and vectors) in Matlab, you will come across situations where sorting the data will become a necessity. Here are some tips for how to go about doing so. Lets...
View ArticleHow to Do Polynomial Curve Fitting in Matlab
Polynomial curve fitting is a common task for data analysts in many fields of science, engineering and social science. The standard method to fit a curve to data is to use the least squares method....
View ArticleTwo Dimensional Random Walk in MATLAB
Previously we described what a random walk is and demonstrated some simple code to perform this walk in one dimensional space. Today we will provide some simple code for how to perform such a walk in...
View Article