I'm working with the RF PCB Toolbox and am creating a simple Matlab App like shown below:
The goal is when pressing the plot button it will change the figure and display the result generated by the "show()" function.
The show function by itself has an output that looks like this:
However, when I call the show function inside the callback for the Plot button it hijacks the entire UI window and deletes the buttons/knobs. I just want the show function plot to occupy the space where the empty plot in the app UI window occupies.
One of Matlab's App tutorial video shows an example using "scatter(app.UIAxes,x,y)" but there is no way I can find to do that with the show function.
I've also tried using "focus(app.UIAxes)" but it gives the error message "Undefined function 'focus' for input arguments of type 'matlab.ui.control.UIAxes'."