How to loop a function?

조회 수: 1 (최근 30일)
Mari Norwie
Mari Norwie 2020년 6월 1일
댓글: Manish Kumar 2020년 7월 1일
I would please like to ask if what i did to loop a function is correct?
for l = 1:length(getgastablelisting(FilePrefix, DirectoryName, filetype))
CurrentSheet = readmatrix(LookupTableFiles(l));
[Cols,StructOut] = getindepvars(CurrentSheet);
end
  댓글 수: 2
Harsh Parikh
Harsh Parikh 2020년 6월 5일
Hi Mari,
Could you please shed some light on the different variables and the functions used in the loop? (mainly the following.)
  • LookupTableFiles
  • getgastablelisting()
  • getindepvars()
That would give a better idea about what's going on in the loop.
Moreover, could you please briefly explain what do you want to achieve through this loop?
Manish Kumar
Manish Kumar 2020년 7월 1일
Yes as per the syntax it is correct.
But It would be better if you can share about the function and their return types.

댓글을 달려면 로그인하십시오.

답변 (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