OBJECTIVE: To familiarise the student with MATLAB as computational, graphical, and programming tools.
INTRODUCTION
MATLAB is introduced by MathWorks Inc., as computational, visualised, and programming tools in an easy-to-use environment and familiar mathematical notations. Nowadays, MATLAB becomes a standard tool for courses and research in mathematics, science, and engineering. Basically, there are two ways to work with MATLAB: in interactive mode and through a script m-file. In interactive session, the commands are entered and executed one at a time in the MATLAB command window. Large sequences of commands are usually difficult to keep track of in an interactive mode. Another option is to write the sequence of commands in a text file, and execute the file in MATLAB. This text file is called a script m-file. Most of MATLAB files are written in m-files. Any change of codes in an m-file is made through the MATLAB editor. Then the change is saved, and the m-file is executed again in MATLAB command line.