Chapter 6

MATLAB Programs

Contents

Key Terms

functions that return more than one value

functions that do not return any values

side effects

call-by-value

modular programs

main program

primary function

subfunction

menu-driven program

variable scope

base workspace

local variable

global variable

persistent variable

bug

debugging

syntax errors

runtime errors

logical errors

tracing

breakpoints

function stubs

Chapter 2 introduced scripts and user-defined functions. In that chapter, we saw how to write script files, which are sequences of statements that are stored in an M-file and then ...

Get Matlab: A Practical Introduction to Programming and Problem Solving, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.