Category: Functions

Why Use Object-Oriented Design

Approaches to Writing MATLAB Programs Creating software applications typically involves designing how to represent the application data and determining how to implement operations performed on that data. Procedural programs pass data to functions, which...

Adding Text Annotations to Graphs

What Are Text Annotations? Text annotations are boxes containing text strings that you compose. The box can have a border and a background, or be invisible. The text can be in any installed text...

Source Control Interface on Microsoft Windows

If you use source control systems to manage your files, you can interface with the systems to perform source control actions from within the MATLAB, Simulink, and Stateflow® products. Use menu items in the...

MATLAB Commands

Basic Command Syntax A simple MATLAB command computes the result of the expression to the right of the equals sign and assigns the value of the result to the output variable at the left....

Plotting Tools — Interactive Plotting

What Are Plotting Tools? The modular, interactive plotting environment called plotting tools enables you to Create various type of graphs Select variables to plot directly from a workspace browser Easily create and manipulate subplots...

Marking Up Graphs with Data Brushing

What Is Data Brushing? When you brush data, you manually select observations on an interactive data display in the course of assessing validity, testing hypotheses, or segregating observations for further processing. You can brush...

Finding maximum and minimum values in arrays

Let’s write a function file range.m that calculates the difference between the maximum and minimum value in a vector. The file should return a reply. Open an edit window. Create a function file like...