Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个不同的 MATLAB 图形存储在.fig文件中:solve.fig和main.fig.
.fig
solve.fig
main.fig
现在我有一个按钮main.fig,点击它应该会打开solve.fig。我该怎么做呢?
如果按钮的名称是pushbutton1,则只需将以下行添加到main.m:
pushbutton1
main.m
function pushbutton1_Callback(hObject, eventdata, handles) solve();