passing arrays between functions?

19 vues (au cours des 30 derniers jours)
new user 00
new user 00 le 5 Juil 2018
Modifié(e) : Stephen23 le 5 Juil 2018
I have two fields in a file which are arrays. I've loaded them in one callback function of a gui. But I need them in another callback function for some calculations. How do I do this?
  2 commentaires
Stephen23
Stephen23 le 5 Juil 2018
Modifié(e) : Stephen23 le 5 Juil 2018
  • If you are using GUIDE then use guidata.
  • If you are sensibly writing your own code then use nested functions:

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Structures 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