passing arrays between functions?

조회 수: 21 (최근 30일)
new user 00
new user 00 2018년 7월 5일
편집: Stephen23 2018년 7월 5일
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개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by