Programmer Guide/Command Reference/EVAL/fill: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
Create a vector with equally spaced elements. | Create a vector with equally spaced elements. | ||
;Usage: '''<code>fill(<var>n</var>{, <var>x0</var>{, <var>dx</var>}})</code>''' | ;Usage: '''<code>fill(<var>n</var> {, <var>x0</var> {, <var>dx</var>}})</code>''' | ||
:;<var>n</var>: vector length, a scalar (>0) | :;<var>n</var>: vector length, a scalar (>0) | ||
::note: if ''n'' is a vector, ncol(''n'') is used as number of elements | ::note: if ''n'' is a vector, ncol(''n'') is used as number of elements |
Revision as of 13:11, 4 April 2011
Create a vector with equally spaced elements.
- Usage
fill(n {, x0 {, dx}})
- n
- vector length, a scalar (>0)
- note: if n is a vector, ncol(n) is used as number of elements
- x0
- start value, must be a scalar (default=0)
- dx
- increment, must be a scalar (default=0)