Chapter
C
hapter 2 covered numerical methods that are quite useful in solving
chemical engineering problems, which translate into C programs.
MATLAB, however, is a mathematical programming language, so it
already has numerous existing functions that can perform numerical computation.
Some of these functions were developed based on the algorithm we learned when
we developed functions in C.
In this chapter, we will further explore MATLAB existing functions
including:
The Matrix Method for Linear Equations
The
inv() Function
Matrix Left Division (
\)
Regression and Curve Fitting
The
polyfit() Function
The
polyval() Function
Coefficient of Determination and Standard Error of Estimate
Finding Roots
The
roots() Function
The ...