ENCMP100 Study Guide - Final Guide: Global Variable, Matlab, Code Refactoring
Document Summary
Each call to a function creates a new workspace. Different calls to the same function do not interact. Script: a sequence of matlab comments stored in a file. Functions do not have direct access to variables in the in command window workspace, so they cannot change their values. Unit testing is the testing of a small block in project; often a block is a function. = dummy arguments (only are placeholders for the actual values a that are passed into the function and returned to the calling function or script) command window, in a script , or in another calling a function. Function after this keyword the execution of the function starts and then ends with either one of the two return statement or an end. When the function returns (ends) the values stored in the output argument a list are returned to the caller. Pass by value parameter passing method.