I am trying to design an app using Matlab 2017b with appdesigner
. I want to attach a movable line to an image using the imline
function. However, appdesigner
appear to use a new type of object, uiaxes
, whereas the imline
function will only use the object axes
.
Example of command that does work:
figure; taxes = axes; imline(taxes, [0 0], [0 1]);
Example of a command that does not work:
figure; tuiaxes = uiaxes; imline(tuiaxes, [0 0], [0 1]);
Questions
Is there a workaround for using imline
with appdesigner? Is it still possible to use the old axes
object? Is there some other way to have interactive lines on GUIs using the appdesigner
?