Is there any way to find it?
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
i have to load a file in one callback function of gui in matlab. It will have two arrays. But i don't know the name of the stored arrays. I need to retrive them and use them in another callback function of the same gui. How do i do these tasks?
댓글 수: 0
채택된 답변
  Rik
      
      
 2018년 7월 3일
        You can load the variables into a struct with the following syntax
s=load('yourfile.mat');
Then you can get the variable names it contains with the fieldnames function. To share this data between the two callbacks, you can simply use the guidata handles struct.
댓글 수: 4
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


