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.

 Accepted Answer

Matt J
Matt J on 20 Nov 2013
Edited: Matt J on 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.

More Answers (0)

Categories

Asked:

on 20 Nov 2013

Edited:

on 20 Nov 2013

Community Treasure Hunt

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

Start Hunting!