116. Concatenate arrays and scalars in an array constructor []#

topic: Arrays

Note

This tip is a draft1.

A mix of arrays and scalars can be concatenated to a 1D array by putting them in an array constructor. Each array is flattened in column-major order to a 1D array. Columns can be added to a matrix using RESHAPE on a concatenation.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.