From: matevz pavlic on
Hi all,
i have a table (from CSV file). I would like to make a matrix out of it in a way that forst column would be i, second column would be j and third would the value. I there a easy way to do this?
Thnks, m
From: Wayne King on
"matevz pavlic" <matevzpavlic(a)gmail.com> wrote in message <hv7sik$r6c$1(a)fred.mathworks.com>...
> Hi all,
> i have a table (from CSV file). I would like to make a matrix out of it in a way that forst column would be i, second column would be j and third would the value. I there a easy way to do this?
> Thnks, m

Hi, Did you read the file into Matlab? If you are trying to read it, you can use something like:

[data] = textread('datafile.csv','','delimiter',',');

See the documentation for textread().

If you already read the data into Matlab, what are the dimensions of the variable?

Wayne
From: matevz pavlic on
Hi,

yes i allready read it into Matlab. Dimensions are now 39744 x 3. I would like them to be 192x206 and the third column to be value of matrix. Hope this explains it...
m
From: Wayne King on
"matevz pavlic" <matevzpavlic(a)gmail.com> wrote in message <hv7u3t$70l$1(a)fred.mathworks.com>...
> Hi,
>
> yes i allready read it into Matlab. Dimensions are now 39744 x 3. I would like them to be 192x206 and the third column to be value of matrix. Hope this explains it...
> m

Hi, Something is off, because 39744 x 3 and 192x206xinteger doesn't equal.
Wayne
From: dpb on
matevz pavlic wrote:
> Hi,
> yes i allready read it into Matlab. Dimensions are now 39744 x 3. I
> would like them to be 192x206 and the third column to be value of
> matrix. Hope this explains it...
> m

Still can't parse the request...

_SHORT_ sample data set of what's in the csv file and what you want the
Matlab representation to be??? (That is, give us an example of about 10
entries or so, not 40,000)

--
 |  Next  |  Last
Pages: 1 2 3
Prev: extract daily data
Next: converting matrices