Chapter 2

MATLAB Fundamentals

Abstract

The objective of this chapter is to introduce some of the fundamentals of MATLAB programming, including variables, operators, expressions, arrays (including vectors and matrices), basic input and output, repetition (via the for loop construct), and decisions (via the if-else-end construct). The tools introduced in this chapter are sufficient to begin solving numerous scientific and engineering problems you may encounter in your course work and in your profession. The last part of this chapter introduces an approach to designing reasonably good programs that help you build technical computing tools for your own toolbox.

Keywords

Arrays; Input/output; Repetitive calculations (loops) and decisions ...

Get Essential MATLAB for Engineers and Scientists, 6th 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.