필터 지우기
필터 지우기

Info

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

Problems with my Macro

조회 수: 2 (최근 30일)
Bran
Bran 2015년 2월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
I am trying to run a function that I have written in MATLAB automatically for twenty five text files that I have. I am using the following code;
function SINANALYSIS(in,out,out2,out3)
x = load(in);
y = SOME ANALYSIS ON SIN FUNCTION
y2 = FURTHER ANALSYSIS on SIN FUNCTION
y3 = PART3 ANALYSIS
save(out,'y')
save(out2,'y2')
save(out3,'y3')
file 2: "process_it_all"
in = {'file1.txt','file2.txt' 'file.txt'...'file25.txt'};
out = {'VAR1'};
out2={'VAR2'};
out3 = {'VAR3'};
for i = 1:numel(in)
SINANALYSIS(in{i},out{i},out2{i}, out3{i})
end
However, I am getting many errors using this code. Is there another way about automating this process?

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by