怎样在已有程序上加GUI,编写callback function
이전 댓글 표시
已有一个能正常运行的小游戏程序,想在此基础上加一个开始界面。 创建了一个“新游戏”按钮,并将已有程序全部复制粘贴到function pushbutton1_Callback(hObject, eventdata, handles)下方,为什么按按钮后不能运行此程序呢?不知道callback function是不是有别的什么要求?或者是不是还需要改动outputfcn等地方? 错误提示是 Undefined function or variable 'pushbutton1_Callback'. Error while evaluating UIControl Callback 谢谢!
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 循环及条件语句에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!