O'Reilly logo

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

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

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