O'Reilly logo

MATLAB Optimization Techniques by César Pérez López

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 2

image

MATLAB Programming

2.1 MATLAB Programming

MATLAB can be used as a high-level programming language including data structures, functions, instructions for flow control, management of inputs/outputs and even object-oriented programming.

MATLAB programs are usually written into files called M-files. An M-file is nothing more than a MATLAB code (script) that executes a series of commands or functions that accept arguments and produce an output. The M-files are created using the text editor.

2.1.1 The Text Editor

The Editor/Debugger is activated by clicking on the create a new M-file button in the MATLAB desktop or by selecting File New ...

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