Difference between revisions of "MATLAB: Vector algebra"

From Robotics
Jump to: navigation, search
Line 1: Line 1:
 
{{MatlabNavigation|previous=[[MATLAB: Overview|Overview]]|article=[[Vector algebra]]|next=[[MATLAB: Unit vectors|Unit vectors]]}}
 
{{MatlabNavigation|previous=[[MATLAB: Overview|Overview]]|article=[[Vector algebra]]|next=[[MATLAB: Unit vectors|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.
+
 
 +
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:
 +
[[File:matlab-va-scalar.png|400px]]

Revision as of 16:35, 23 September 2014

← Previous: Overview Matlab.png 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: Matlab-va-scalar.png