How to select particular columns in each cell of one cell array?

28 ビュー (過去 30 日間)
essi
essi 2013 年 6 月 14 日
編集済み: Hayder 2019 年 6 月 3 日
Dear all, I am Beginner in MATLAB and I have this problem:
I have a cell array with 491 cell(with different dimensions) and I want to select particular columns in each cell, for example I want to select column 50 in cell 10, so I do this: A=[cell array]; b=A(:,10); c=b(b{:,50}); but error is: ??? Index exceeds matrix dimensions. now how can I this?
best regards
ESSI

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 14 日
編集済み: Azzi Abdelmalek 2013 年 6 月 14 日

その他の回答 (2 件)

sathish kumar rb
sathish kumar rb 2017 年 11 月 11 日
i need to select a column from giving the number in one csv file and tat particular column number will be need to select in another csv file

Hayder
Hayder 2019 年 6 月 3 日
編集済み: Hayder 2019 年 6 月 3 日
To select the second column:
AT=cell2table(A);%each column will have a name start with A and followed by column index
A1=AT.A2;

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by