save all ans of for loop
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Amr Hashem
am 11 Mai 2015
Kommentiert: Star Strider
am 12 Mai 2015
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?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 11 Mai 2015
Save ‘d’ as a cell array:
d{E} = regexp(data{E,6},'[ ]*','split');
5 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!