passing arrays between functions?

17 Ansichten (letzte 30 Tage)
new user 00
new user 00 am 5 Jul. 2018
Bearbeitet: Stephen23 am 5 Jul. 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 Kommentare
Stephen23
Stephen23 am 5 Jul. 2018
Bearbeitet: Stephen23 am 5 Jul. 2018
  • If you are using GUIDE then use guidata.
  • If you are sensibly writing your own code then use nested functions:

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by