MATLAB is a high-performance language for technical computing. It integrates computation,
visualization, and programming in an easy-to-use environment where problems and solutions are
expressed in familiar mathematical notation. Typical uses include: Application development,
including Graphical User Interface building.
MATLAB allows matrix manipulations, plotting of functions and data, implementation of
algorithms, creation of user interfaces, and interfacing with programs written in other
languages, including C, C++, C#, Java, Fortran and Python.
A function is a group of statements that together perform a task. ... Functionsn operate on
variables within their own work space, which is also called the local work space, separate from
the work space you access at the MATLAB command prompt which is called the base work
space.
Save your script and run the code using either of these methods:
- Type the script name on the command line and press Enter. For example, to run the num Generator.m script, type num Generator .
- Click the Run button on the Editor tab.