필터 지우기
필터 지우기

how to save all results of for loop

조회 수: 2 (최근 30일)
Fateme Jalali
Fateme Jalali 2015년 12월 9일
편집: James Tursa 2015년 12월 9일
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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by