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일
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에서 Cell 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