Hello,
>De: "anna78" 4 Mars 2016 14:45:10
>.../...
>Is it possible to build a matrix with different element types?
This is called a cell array.
In your case, since each column is homogeneous, you may as well store the 13
matrices simply in a list: M = list(M1,M2,..,M13).
The most appropriate c
example
M1=(1:15)';M2="foo"+string(M1);M3=sin(M1/10);
M=tlist("cblock",M1,M2,M3)
M(1:2,:)
M(:,1) //the result is a standard array of numbers
M(:,2) //the result is a standard array of strings
This kind of data structure can be obtained directly reading a data file
with mfscanf
with the attache
dear all,
I have 13 column vectors: M1, M2, M13.
One is an integer /%d) vector, two are string (%s) vectors, the others are
double (%f).
I would like to build the matrix M=[M1 M2 M3... M13], but it looks like not
working.
Is it possible to build a matrix with different element types?
thank