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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.