[問題] GUI與模擬數據結合已回收
我寫了一個模擬程式
想把模擬的結果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