ABSTRACT

MATLAB provides a very powerful high-level programming language, embedded in a computational environment, known as m-language. A very important advantage, when compared to other programming languages such as C, 136FORTRAN, Java, and VisualBasic, to name a few, is that variables do not have to be defined at the beginning of the program, but rather they are defined automatically as they are written for the first time in the program. In addition, the type of the variables can be changed along the program depending upon the programmer’s needs. Another very important advantage is that all the instructions and functions used and programmed in MATLAB can be used in the program. Thus, instructions and functions such as the ones used for optimization, image processing, integration, matrix inversion, to solve differential equations, etc., can be used in the program. This makes the m-language much more powerful than any other programming language. In this chapter we cover many of the instructions used to write programs using m-language and give some examples.