setappdata

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일

0 개 추천

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

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

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2011년 12월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by