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

I am using julia Version 0.4.0-dev+523 (2014-09-10 15:51 UTC)

Thank you in advance for any comment,

Charles

-- 
Um axé! :)

--
Charles Novaes de Santana, PhD
http://www.imedea.uib-csic.es/~charles

Reply via email to