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.

 采纳的回答

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.

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Large Files and Big Data 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by