extract information from cell array

1 回表示 (過去 30 日間)
Rachel Barbera
Rachel Barbera 2018 年 10 月 22 日
回答済み: Bob Thompson 2018 年 10 月 22 日
In each of the 6x4cell cell in the textData variable (picture 1) has a column of grades as shown in picture 2. I am trying to extract all the grades as shown into a new cell array named grades. How can I do it?

回答 (1 件)

Bob Thompson
Bob Thompson 2018 年 10 月 22 日
You should be able to extract the data using the following:
Grades = '';
for k = 1:length(textData);
Grades = [Grades, textData{k}{2:6,2}];
end
I'm not sure exactly how you want to organize the data, however, so if you have more information I can take a guess at it. Currently, this just extracts the grades into one long text string.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by