Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Matlab2006 Problem with evaluating Callbacks in GUIDE

조회 수: 3 (최근 30일)
Franzi
Franzi 2011년 11월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
I have some troubles with evaluating callbacks for Guide-figures in Matlab 7.3 (2006).
I created a Guide-Interface with some buttons and edit-fields but Matlab creates no callbacks for the items in the .m-File. I tried to create some by myself but I have no idea what path I have to insert in the 'callback' field of the property inspector.
for example:
function Speichern_Callback(hObject, eventdata, handles)
[filename,pathname] = uiputfile('default','Datei speichern');
if pathname == 0
end
saveDataName = fullfile(pathname,filename);
hgsave(saveDataName);
A few days before I used Matlab 2008 and everything worked fine. Unfortunately my professor wants me to use the older version.
Greetings,
Franzi

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 11월 11일
If you are using GUIDE, then in GUIDE, right click the Button or Edit, select the correct callback function, it will bring you to the Editor with the callback function template established. You just need to write your function and don't need to worry about the 'callback' field of the property inspector.
  댓글 수: 1
Franzi
Franzi 2011년 11월 14일
Hi!
It seems GUIDE had some problems with the created figure. I 'copy and paste' it to a new figure and everything worked fine.
But thanks anyway! :)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by