Matlab Functions and their uses
To make life easier, Matlab includes many standard functions. Each function is a block of code that accomplishes a specific task. Matlab c...
https://things-for-students.blogspot.com/2012/03/matlab-functions-and-their-uses.html
To make life easier, Matlab includes many standard functions. Each function is a block of code that accomplishes a specific task. Matlab contains all of the standard functions such as sin, cos, log, exp, sqrt, as well as many others. Commonly used constants such as pi, and i or j for the square root of -1, are also incorporated into Matlab. Matlab even allows you to write your own functions with the function command.
Extension “.m”
A text file containing script or function or program to run
function which takes an input array and returns the sum and product of its elements as outputs