Creating a matrix with multiple cells in each column

I created a matrix from textscanning a csv file. I wanted five of the columns out of the csv file. In each column is 365 rows of data. When I create the matrix from textscan, it creates a 1X5 matrix. In each column is the 365 rows of data. My question is how do I access the rows of data if it is a 1X5 matrix.

 Akzeptierte Antwort

Matt J
Matt J am 20 Nov. 2013
Bearbeitet: Matt J am 20 Nov. 2013
It's probably not a 1x5 matrix, but rather a 1x5 cell array
>> A=num2cell(rand(365,5),1),
A =
[365x1 double] [365x1 double] [365x1 double] [365x1 double] [365x1 double]
Here is info on accessing cell array data.

Weitere Antworten (0)

Kategorien

Gefragt:

am 20 Nov. 2013

Bearbeitet:

am 20 Nov. 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by