APPENDIX A

image

Numbers, Variables, Operators and Functions Used in Graphics Programming

A.1 Variables

Variables and functions have an important role in graphical programming. Especially the vector and matrix variables. MATLAB does not require any command to declare variables. Simply create the variable by direct allocation of its value. For example:

>> v = 3v =     3

The variable v will be worth 3 unless its value is changed by using a new mapping. Once the variable is declared we can use it in calculations.

>> v ^ 3Ans =    27>nmr4eb]\tb5r'> v+5Ans =     8

The value assigned to a variable is permanent, until changed explicitly it is defined outside ...

Get MATLAB Graphical Programming 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.