From: matevz pavlic on
Hi,
i am very fresh to MATLAB...
I have a CSV file which i imported in Matlab. There are three columns in it.
I would like to convert this to matrix so that first column would be i, scond would be j and third would be the value. Is there an easy way to do that?
thanks, m
From: Oleg Komarov on
"matevz pavlic" <matevzpavlic(a)gmail.com> wrote in message <hv7svo$nf6$1(a)fred.mathworks.com>...
> Hi,
> i am very fresh to MATLAB...
> I have a CSV file which i imported in Matlab. There are three columns in it.
> I would like to convert this to matrix so that first column would be i, scond would be j and third would be the value. Is there an easy way to do that?
> thanks, m

Post the result of:
whos yourVariable

and
yourVariable(1:3,:)

Oleg
From: us on
"matevz pavlic" <matevzpavlic(a)gmail.com> wrote in message <hv7svo$nf6$1(a)fred.mathworks.com>...
> Hi,
> i am very fresh to MATLAB...
> I have a CSV file which i imported in Matlab. There are three columns in it.
> I would like to convert this to matrix so that first column would be i, scond would be j and third would be the value. Is there an easy way to do that?
> thanks, m

a hint:

help find; % <- look at the various output args...

us