ABSTRACT

This chapter introduces the fundamental features of MATLAB, Simulink, and Simscape that are pertinent to modeling and analysis of dynamic systems. These include the descriptions and applications of several commonly used built-in functions in MATLAB and the basics of building block diagrams for the purpose of simulation of dynamic systems by using Simulink and Simscape. The symbolic math toolbox allows for the manipulation of symbols to perform operations symbolically. An anonymous function offers a way to create a function for simple expressions. Anonymous functions can only contain one expression and cannot return more than one output variable. The built-in matlabFunction allows to generate a MATLAB file or an anonymous function from sym object. An alternative way to plot a function is to use the ezplot command, which plots the function without requiring data generation.