passing arrays between functions?

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

Stephen23
Stephen23 2018년 7월 5일
편집: Stephen23 2018년 7월 5일
  • If you are using GUIDE then use guidata.
  • If you are sensibly writing your own code then use nested functions:

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

답변 (0개)

카테고리

질문:

2018년 7월 5일

편집:

2018년 7월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by