필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

pass command line inputs

조회 수: 1 (최근 30일)
aditi
aditi 2020년 8월 8일
마감: MATLAB Answer Bot 2021년 8월 20일
I have a MATLAB program with somewhat following structure:
load file1.txt;
load file2.txt
a=file1(:,2);
b=file2(:,2);
g=file1(:,1);
q=file2(:,1);
for i = 1:length(a)
for j = 1:length(b)
z = a(i)*b(j);
end;
end
I have to now run this again and again for 50 files i.e. file1.txt will remain same but instead of file2.txt I have to do for 50 files like file3.txt, file4.txt, file5.txt....
how can I do it? Please help

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by