40 scripts and functions
Table 5: Function definitions, filenames, input and output variables
function definition
filename input variables output variables notes
function [rho, H, F] = motion(x, y, t)
motion.m
x, y, t rho, H, F
function [theta] = angleTH(x, y)
angleTH.m
x, y theta
function theta = THETA(x, y)
THETA.m
x, y theta
If there is only oneoutput variable thesquare brackets canbe omitted
function [] = circle(r)
circle.m
r
None
function circle(r)
circle.m
r
None
If there are nooutput variables thesquare brackets andthe equals signcan be omitted