ABSTRACT

MATLAB is a software program for numeric computation, data analysis, and graphics. Mathworks, the company that developed MATLAB, normally update their version of MATLAB every six months. This chapter discusses the MATLAB desktop windows and how to construct a script in MATLAB based on MATLAB version R2016b. In MATLAB, the default for floating point numbers is double precision that requires 64 bits of memory. You can specify variables to be single precision that only requires 32 bits of memory. One special value in MATLAB is ans, it is the last computed unassigned result to an expression typed in the Command Window. MATLAB allows the use of i and j for -1. Programmers who have experience with FORTRAN, the programming language that was commonly used in engineering many years ago, frequently used i and j as integer loop variables. The MATLAB command that the programmer can use to have the user enter data from the keyboard is the input command.