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.

 採用された回答

Matt J
Matt J 2013 年 11 月 20 日
編集済み: Matt J 2013 年 11 月 20 日

0 投票

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 ExchangeCell Arrays についてさらに検索

質問済み:

2013 年 11 月 20 日

編集済み:

2013 年 11 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by