examples thoroughly introduce the basics you need to get started. They
supplement very well the Tutorial
you can find examples on different types of arithmetic, exponential,
and complex number
operations handled easily with Matlab
Simple Vector Algebra
On this page we expose how simple it is to work with vector algebra,
In this group of examples, we create several cosine MATLAB plots, work with different resolution
and plot parameters...
MATLAB programming (Script Files)
this example, we program the plotting of two concentric circles
and mark the center point with a black square. We use polar coordinates
in this case (for a variation)...
A custom-made Matlab function
though Matlab has plenty of useful functions, in this example we
develop a custom-made
Matlab function. We have one input value and two
output values to transform a given number in both Celsius
In this section we study and experiment with matrix manipulation
and boolean algebra.
This tutorial creates some simple matrices and then combines them to
form new ones of higher
dimensions. We also extract
data from certain rows or columns to form matrices of lower dimensions...
The dot product
is a scalar number and so it is also known as the
In a real vector space, the scalar product
between two vectors...
In this example, we are going to write a function to find the cross product of two
given vectors u
= [u1 u2 u3] and v
= [v1 v2 v3]...
The unit of imaginary
is root of -1
and is generally designated by the letter i
Many laws which are true for real numbers are true for imaginary
numbers as well. Thus, in this Matlab example...
Value of investment
program is an example of a financial
application in Matlab. It calculates the
of an investment when interest is a factor. It is necessary to
provide the amount of
the initial investment...
is a kind of tricky and smart construction which
allows a function to
call itself. The Matlab programming language supports it...
We’ll now implement a kind of electricity
with Matlab... This calculator will help you estimate the cost of operating any
given electrical device or appliance at home, based on the
- working with indices
is a phrase, word, number or other sequence of characters
that can be read the same way in either direction...
'Matlab Examples' to home
'Matlab Examples' to 'Matlab Tutorial'