Matlab Class Home
Class Outline
Previous Class
Next Class
Evaluation 8
Goal for Week 8: Programming with functions
Summary of new tools and commands.
function
keyword defining a function
end
signifying the end of a function
return
jump out of a function before the end
warning
issue a warning (calculations will continue)
error
issue an error (calculations will stop)
isnumeric
tests if a variable is of numerical type (real or integer)
global
define variables to be specified outside of a function
nargin
number of input variables to the function
nargout
number of output variables from the function
addpath
add a directory containing functions or data to the MATLAB search path
ode45
solver for first order ODE
Tasks for Week 8
Tasks
1
Using MATLAB functions to isolate calculations
2
Using functions to build tools
3
Creating and using tools made by you and others, controlling the MATLAB search path
4
Calculating a numerical solution to an ordinary differential equation
5
Calculating a numerical solution to several coupled ordinary differential equations
Matlab Class Home
Class Outline
Previous Class
Next Class
Evaluation 8
email: J. Klinck