Abstract

MATLAB® is a structured programming language – this means that you do not have to code everything from scratch. This makes it easier and quicker to develop sophisticated code. The program contains a large library of built-in functions, many of which are included in the core package available to all users. In this chapter, you will learn how to interpret function syntax, as provided in the help documentation, so that you can make optimal use of these functions in your own work. By the end of this chapter, you will have explored a variety of function structures including functions with optional inputs and multiple output values. You will also learn how to use a range of functions including the sub2ind and ind2sub function to convert between the subscript and index method of identifying location in an array, the find function to select a subset of elements in an array, and the max function which is a flexible function used to find maximum values.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call