필터 지우기
필터 지우기

setappdata

조회 수: 2 (최근 30일)
Agata
Agata 2011년 12월 20일
Hi, I have the problem with setappdata, can I use that metod outside GUI? In my own function?
Thanks for help:)

답변 (1개)

Sean de Wolski
Sean de Wolski 2011년 12월 20일
set to the root directory and you can access from anywhere even after the gui figure is closed.
set(0,'mydata',magic(4));
from anywhere
my_data = getappdata(0,'mydata');
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 12월 20일
Interesting, that does work even with -nojvm

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by