看板 MATLAB 關於我們 聯絡資訊
大家好~ 想請教一下,若我有一個GUI主程式,另外我有一個外部funtion, 我想要當我call外部funtion時,反應在GUI介面上, 例如: [varargout] = GUI(varargin) . . . . . end [varargout] = outfuncton(varargin) A; set(handles.text1,'String',A); end 但是在外部funtion卻不知道handles.text1這個物件 我該如何讓他知道呢?? 我不想要把A寫成funtion的輸出或是global,再由GUI去call, 我想在外部funtion直接call,有辦法嗎? 謝謝大家!!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 218.161.53.13 ※ 文章網址: https://www.ptt.cc/bbs/MATLAB/M.1458140282.A.BFE.html
sunev: 不懂你的意思,function 可以看到的東西就是你丟進去的參 03/17 04:30
sunev: 數啊? 03/17 04:30
jeffppp: 試試看setappdata與getappdata 03/17 09:14