Adding a Callback to a Button to import data onto a plot
显示 更早的评论
With the new version of MATLAB GUI, the structure has changed. I have added a callback to a button
% Button pushed function: Button
function ButtonPushed(app, event)
I cannot change the above^.
I have used the uigetfile function to import data.
[filename, pathname] = uigetfile('*.*');
plot('U',app.UIAxes);
Now I'm wondering how to import it onto app.UIAxes, can anyone help with this? I'm assuming my second line of code is wrong.
Thank you
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 App Building 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!