Tagged: Expression

Matlab Live Editor

Programming and Scripts

Scripts To create a script, use the edit command, edit mysphere This command opens a blank file named mysphere.m. Enter some code that creates a unit sphere, doubles the radius, and plots the results: [x,y,z] = sphere;...

Logical Subscripting

Matlab Logical Subscripting Tutorial The logical vectors created from logical and relational operations can be used to reference subarrays. Suppose X is an ordinary matrix and L is a matrix of the same size...

The Colon Operator

The colon, :, is one of MATLAB’s most important operators. It occurs in several different forms. The expression 1:10 is a row vector containing the integers from 1 to 10 1 2 3 4...

Linking Graphs to Variables & Data Source Properties

Plot objects let you link a MATLAB expression with properties that contain data. For example, the lineseries object has data source properties associated with the XData, YData, and ZData properties. These properties are called...

Specifying Class Precedence

InferiorClasses Attribute You can specify the relative precedence of user-defined classes using the class InferiorClasses attribute. Assign a cell array of class names (represented as meta.class objects) to this attribute to specify classes that...

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