[問題] GUI與模擬數據結合已回收

看板MATLAB作者 (嘿~賽門)時間15年前 (2010/04/24 17:46), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我寫了一個模擬程式 想把模擬的結果show在GUI上面 因此,我設定了兩個物件 一個是button,另一個是axes 1.在OpeningFcn裡面 寫入模擬的程式,並把模擬數值( 共9個值 )存在simulation的變數中, 最後寫入 handles.simulation = simulation; handles.current_data = handles.simulation; 2.在button的callback中 function Simulation_Callback(hObject, eventdata, handles) simulation(handles.current_data); ------------------------------------------------------------- 出現錯誤: ??? Undefined function or method 'simulation' for input arguments of type 'double'. 請問我哪邊寫錯了,或是哪個觀念錯誤?? 謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.71.192.234
文章代碼(AID): #1Bqhtt8r (MATLAB)