Difference between revisions of "MATLAB: Vector algebra"
From Robotics
Line 3: | Line 3: | ||
In MATLAB you do not not have to declare a variable and its type. The type of a variable is specified through its initialization. So you choose a name for the variable and use the equal sign to initialize it. A scalar value for example is initialized like follows:<br/> | In MATLAB you do not not have to declare a variable and its type. The type of a variable is specified through its initialization. So you choose a name for the variable and use the equal sign to initialize it. A scalar value for example is initialized like follows:<br/> | ||
− | [[File:matlab-va-scalar.png| | + | [[File:matlab-va-scalar.png|500px]] |
Revision as of 16:39, 23 September 2014
← Previous: Overview | Web interface | MATLAB overview | Back to article: Vector algebra | Next: Unit vectors → |
In MATLAB you do not not have to declare a variable and its type. The type of a variable is specified through its initialization. So you choose a name for the variable and use the equal sign to initialize it. A scalar value for example is initialized like follows: