The goal is to allow an user to plot its data using the usual MATLAB way of doing, then use the created axe in a MATLAB app, inside an uiaxes component.
xtitle('My title'); xlabel('Time (s)'); ylabel('Data'); grid on; xlim(limits)
Startup function inside the app should be something like : (pseudo-code)
function startupFcn(app, user_ax)
I am really suprised there is no built-in constructor being able to achieve this.
I would like axes properties to be kept (like title, legend, grid, labels, xlim, ylim...) and if possible even functions callbacks the user might have deisgned previously. (this last point is not the most important, though)
Suprisingly, I neither found nothing on Mathworks forums.
Any ideas ?