The MATLAB matrix is the big brother of the MATLAB vector. While a vector consists of a single row or column of values, a matrix is an entire two-dimensional array of values. In fact, matrices in MATLAB are one of the most important ways

In the last two tutorial posts, we discussed the basics of MATLAB plots and different options for formatting MATLAB plots. We will now go one step further and find out how to create multiple plots in MATLAB. Specifically, I will introduce how to create

In the last post, I introduced the basics of MATLAB plots. Now I'd like to show you some very simple MATLAB plot formatting options. These include options for changing the color of plot lines, the type of line, and the type of markers. In

Plots and graphs are perhaps the most convenient way to present engineering information and scientific data. Since MATLAB includes a number of different options for creating two-dimensional plots, I have decided to split the explanation over three posts. In this first post I will

In the previous basic MATLAB tutorial post, MATLAB vectors were introduced. With this knowledge, we can now discuss how we can use vectors to perform MATLAB element by element operations, or element wise calculations. In most other programming languages, to perform a process repeatedly

In a previous MATLAB tutorial post, we saw how to assign a variable name to a value. In this post, we revisit variables momentarily to identify the difference between scalar variables and MATLAB vectors. In fact, a MATLAB vector (and its big brother -

In the last tutorial post, we learned about using MATLAB as a calculator to do some simple math operations. In this post, we will discuss a more powerful tool: the MATLAB script file! A MATLAB script file is a text file containing a series

The most basic use of MATLAB is to use it as a fancy MATLAB calculator. This simply means we can execute mathematical operations in the command window much like you would with a handheld calculator. To do this, we enter an expression, 10 +

The appearance of the basic MATLAB environment will look slightly different depending on which version of MATLAB you have installed. However, all versions contain the same basic parts: Command window/prompt - prompt for entering MATLAB commands and displaying output Working directory - current directory

MATLAB (short for MATrix LABoratory) is a high-level computer programming language used across a variety of engineering industries and academics. It is developed by MathWorks. Among other things, it's useful for: Mathematical computations Modeling and simulations Data analysis and post-processing Visualization and graphics Algorithm