Produces a matrix of the same dimensions as pattern
; excactly
one of these dimensions must be equal to the length of vec
.
If pattern
is square, an error is raised.
1 | swot_vec2mat(vec, pattern)
|
vec |
a vector |
pattern |
a matrix with the desired dimensions |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.