An introduction to MATLAB® with applications
Francesco Cesarone · 2020
This chapter introduces some basic elements for computing in MATLAB. It describes how to build an ordered sequence of commands in a single file, in order to easily and efficiently implement all instructions to reproduce a model. The chapter proposes some exercises on programming and on Financial Mathematics. The authors point out that the first part of this chapter is devoted to teaching MATLAB to those who use it for the first time, while the part concerning Financial Mathematics is addressed to readers who already have at least a basic knowledge of this topic. The authors discuss how to start programming with MATLAB. In particular, the authors describe the basic syntax, the commonly used operators and special characters, and some of the variables, constants, and functions, which are predefined in MATLAB.