作者InoueToro (InoueToro)
看板MATLAB
标题[讨论]compile後引用函数变更,执行结果却不变
时间Wed Jun 25 21:14:54 2014
当制作了一个按钮GUI
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
sayhi('apple');
同资料夹下有一个外部.m档
function sayhi(x)
disp(x);
当把GUI compile成test.exe档後
按该按钮 终端机画面会显示 apple
此时打开sayhi.m
修改成
function sayhi(x)
disp('lemon');
储存sayhi.m档案
再重新执行test.exe档
按该按钮 终端机画面仍显示 apple
请问版友, 不重新compile test.exe 按按钮能显示lemon吗? 谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 59.125.200.66
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/MATLAB/M.1403702097.A.6A8.html