The other is a rule (algorithm) for producing a numerical output from a given numerical input or set of numerical inputs. One is a symbolic expression such as sin(x) or x^2. There are two distinct but related notions of function that are important in Calculus.
In this published M-file, we show how to represent functions of one varaible in MATLAB,then how to do symbolic computation, numerical computation and plotting with them.