# Basic MATLAB Tutorial Archive

## The MATLAB Matrix - MATLAB's Namesake

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

## Multiple Plots in MATLAB

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

## MATLAB Plot Formatting - Line Types, Market Types, and Colors

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

## MATLAB Plots - Learning the Basics

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

## MATLAB Element by Element Operations

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

## MATLAB Vectors and Scalar Variables

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 -

## Using MATLAB Script Files

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

## MATLAB as a Calculator

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 +

## Getting to Know the MATLAB Environment

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

## What is MATLAB?

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