Effacer les filtres
Effacer les filtres

How to loop a function?

2 vues (au cours des 30 derniers jours)
Mari Norwie
Mari Norwie le 1 Juin 2020
Commenté : Manish Kumar le 1 Juil 2020
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 commentaires
Harsh Parikh
Harsh Parikh le 5 Juin 2020
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 le 1 Juil 2020
Yes as per the syntax it is correct.
But It would be better if you can share about the function and their return types.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by