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.
swot_vec2mat(vec, pattern)
Arguments
| vec |
a vector |
| pattern |
a matrix with the desired dimensions |