save all ans of for loop

1 次查看(过去 30 天)
i split a text in cells into words cell1 "text" cell2 "text" cellE "text" but it gives me the last ans only how i can save all the rows
i try:
[num text data]= xlsread('result.xlsx','1') %import data from excel
[R C]=size(data);
for E=1:R % no of rows
d= regexp(data{E,6},'[ ]*','split');
end
how i can save all the answers?

采纳的回答

Star Strider
Star Strider 2015-5-11
Save ‘d’ as a cell array:
d{E} = regexp(data{E,6},'[ ]*','split');
  5 个评论
Amr Hashem
Amr Hashem 2015-5-12
thank you very much in arabic جزاكم الله خيرا

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by