Effacer les filtres
Effacer les filtres

how to save all results of for loop

2 vues (au cours des 30 derniers jours)
Fateme Jalali
Fateme Jalali le 9 Déc 2015
Modifié(e) : James Tursa le 9 Déc 2015
Hi, I wrote this program & my data set is:
I want to do my thesis as well as possible. I want to save all results of for loop (all s) in a matrix. can anyone help me ? Code:
text1 = fileread('D:/a.txt');
length1=length(text1);
whitespace1 = find(text1,' ');
w=strfind(text1,' ');
u=1:size(w,2);
%s=zeros(size(w,2)-1,2)
for i=1:size(w,2)-1;
s = text1(w(i)+1:w(i+1)-1)
end

Réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by