Vector: Difference between revisions

From iMath
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
A vector can be defined by the following three methods:
A vector can be created by the following methods:
* <code>[[expression]] : [[expression]]</code> The given expressions are the first and last element of the vector. In between more elements will be interpolated to make a total of 20, e.g. <code>x = 1:20</code> will give a vector containing the integer numbers from 1 to 20.
* <code>[[expression]] : [[expression]]</code> The given expressions are the first and last element of the vector. In between more elements will be interpolated to make a total of 20, e.g. <code>x = 1:20</code> will give a vector containing the integer numbers from 1 to 20.
* <code>[[expression]] : [[expression]] : [[expression]]</code> This form gives the step value for interpolating the elements between start and end element in the third expression.
* <code>[[expression]] : [[expression]] : [[expression]]</code> This form gives the step value for interpolating the elements between start and end element in the third expression.
* <code>[[bracket]] [[expression]] ; [[expression]] ... [[bracket]]</code> This form lists all elements of the vector explicitly.
* <code>[[bracket]] [[expression]] ; [[expression]] ... [[bracket]]</code> This form lists all elements of the vector explicitly.
* <code>STACK { [[expression]] # [[expression]] # ... }</code> Office math syntax.
* By extracting a row or column from a matrix, either through the [[function|mindex function]] or by [[vector and matrix element access]].


[[Category:Element]]
[[Category:Element]]

Latest revision as of 18:49, 6 July 2017

A vector can be created by the following methods: