Build in Functions in Matlab
A built-in function is part of the MATLAB executable . MATLAB does not implement these functions in the MATLAB language. Although most built-in functions have a . m file associated with them, this file only supplies documentation for the function. Matlab comes preloaded with many built-in functions that are very easy to use. To use a function, type the name of the function in the command window followed by a parentheses. After the parentheses you can list the input arguments, which are seperated by comma’s. After you have entered the input arguments, close the expression with a parenthesis. Function inputs can range from one to many, and the some even take vectors or matrices as inputs. Matlab also has built-in matrix functions that come in very handy. We will explore some of the more common ones below. Our first example involves the use of the cosine function. The cosine function can take a vector or matrix of inputs and produces a vector or matrix of outputs. Rememb...