CHAPTER 5 SIMULATION 5.1 Introduction Matlab and other mathematical computation tools are computer programs that combine computation and visualization power that make them particularly useful tools for engineers. Matlab is both a computer programming language and a software environment for using that language effectively. The name Matlab stands for Matrix laboratory, because the system was designed to make matrix computations particularly easy. The Matlab environment allows the user to manage variables, import and export data, perform calculations, generate plots, and develop and manage files for use with Matlab. The Matlab environment is an interactive environment: Single-line commands can be entered and executed, the results displayed and observed, and then a second command can be executed that interacts with results from the first command that remain in memory. This means that you can type commands at the Matlab prompt and get answers immediately, which is very useful for simple problems. Matlab is an executable program, developed in a high-level language, which interprets user commands. Portions of the Matlab program execute in response to the user input, results are displayed, and the program waits for additional user input. When a command is entered that the command rules, an error message is doesn‘t meet displayed. The corrected command can then be entered. Use of this environment require the compile-link/load-execution process doesn‘t described above for high-level languages. While this interactive, line-by-line execution of Matlab commands is convenient for simple computational tasks, a process of preparation
CHAPTER 5 SIMULATION 5.1 Introduction Matlab and other mathematical computation tools are computer programs that combine computation and visualization power that make them particularly useful tools for engineers. Matlab is both a computer programming language and a software environment for using that language effectively. The name Matlab stands for Matrix laboratory, because the system was designed to make matrix computations particularly easy. The Matlab environment allows the user to manage variables, import and export data, perform calculations, generate plots, and develop and manage files for use with Matlab. The Matlab environment is an interactive environment: Single-line commands can be entered and executed, the results displayed and observed, and then a second command can be executed that interacts with results from the first command that remain in memory. This means that you can type commands at the Matlab prompt and get answers immediately, which is very useful for simple problems. Matlab is an executable program, developed in a high-level language, which interprets user commands. Portions of the Matlab program execute in response to the user input, results are displayed, and the program waits for additional user input. When a command is entered that doesn‘t meet the command rules, an error message is displayed. The corrected command can then be entered. Use of this environment doesn‘t require the compile-link/load-execution process described above for high-level languages. While this interactive, line-by-line execution of Matlab commands is convenient for simple computational tasks, a process of preparation