Borrar filtros
Borrar filtros

how to save all results of for loop

2 visualizaciones (últimos 30 días)
Fateme Jalali
Fateme Jalali el 9 de Dic. de 2015
Editada: James Tursa el 9 de Dic. de 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

Respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by