Dear all,
I would like to create dynamically a matrix with two columns and N rows (where N can be any number between 0 and 1000). I thought I could do it by using the function "cat", but I am facing some problems with this.
My code:
A=[];
(...)
A=cat(1,A,[1 2]);
Is it a good way to create a matrix without defining its dimension a priori?
I was expecting that A would be a matrix 1x2, but I got the following error message:
ERROR: mismatch in dimension 2
in cat_t at abstractarray.jl:689
in cat at abstractarray.jl:666