O'Reilly logo

Matlab: A Practical Introduction to Programming and Problem Solving, 2nd Edition by Stormy Attaway

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required