Questions tagged [matlab-app-designer]

The App Designer, introduced in R2016a, is a graphical tool for creating MATLAB apps with an interactive GUI. Use this tag only for specific MATLAB App Designer questions, and not for questions involving MATLAB GUIDE.

MATLAB App Designer is a graphical tool for creating apps. It features various new elements for user interaction, such as buttons, knobs and gauges.

The App Designer is a different, but complementary approach to the MATLAB GUIDE. While GUIDE has very rich plotting options, including 3D visualizations, the App Designer only features simple 2D plots. On the other hand, App Designer has more elements for user interaction.

Additional information on the App Designer are:

Related tags:

  • for general, not App Designer specific questions.
  • for GUIDE specific questions.
  • for questions about programmatic creation and manipulation of GUIs.
194 questions
9
votes
1 answer

MATLAB App - Add path before component creation

I have a MATLAB App App.mlapp in a certain folder ~/myapp/. The functions it uses and some graphics used in the GUI are in ~/myapp/subfolder. In order to run App.mlapp correctly I have to each time manually add ~/myapp/subfolder to my path before…
Robe
  • 343
  • 5
  • 10
7
votes
2 answers

UIAxes' YLim property cannot be listened to

MATLAB provides the addlistener function. Listeners allow us to keep track of changes of an object's properties and act upon them. For example, we can create a very simple listener that will display a message in the command window when the 'YLim'…
7
votes
4 answers

Boost refresh rate of App Designer UI elements

I am currently trying to display data that I receive via serial port in a Matlab app designer application. I am suffering from abysmal refresh rate of the linear gauges (~1 Hz). The gauges' values are updated by a fixed-rate timer which is set to…
7
votes
1 answer

How to use variables in Matlab App Designer in all callbacks

I have different callbacks in an Matlab App Designer App. In my case several buttons. I need to use the same variables for that. I only get an error when using a variable I created in one Callback in another...
MrMond
  • 81
  • 1
  • 4
7
votes
1 answer

How to customize App Designer figures in more ways than officially documented?

A recently published article in UndocumentedMatlab, mentions that App Designer figures are actually web pages using the Dojo Toolkit. This means we could theoretically manipulate the HTML DOM directly to achieve certain UI customizations that are…
Dev-iL
  • 23,742
  • 7
  • 57
  • 99
6
votes
1 answer

Refresh positions of all draw points after deleting or moving - Matlab App designer

I did an app designer GUI with two buttons and axes. The first one (LoadimageButton) is loading the pappers image and I can mark points until I press escape. The second button is printing out the point coordinates (PositionButton). I have noticed…
alirazi
  • 159
  • 8
6
votes
2 answers

Y-axis flip issue - Matlab App designer GUI

Based on this question Calculate Y coordinates of an image from graph point of origin I tried to do the same in app designer GUI but it does not work. I attached an image that shows that the image does not start from graph point of origin and that I…
AsiJapan
  • 313
  • 1
  • 10
4
votes
0 answers

Create several customizable point ROIs in App designer - Matlab

I wish to add at least 3 customizable point ROIs on an axes in App designer and to store them in an array. Any idea how to make this code shorter and better that it will allow to add more than 3 point ROIs (without declaring several drawpoint) and…
elyraz
  • 473
  • 5
  • 18
4
votes
0 answers

Auto close uifigure upon deletion of handle from workspace

Say I have a GUI class that creates an uifigure (see below). I can create an instance of this class in my workspace: tG = testGUI('hi!'); I can close the GUI by calling the delete method: tG.delete(). Is it also possible to automatically close the…
rinkert
  • 6,593
  • 2
  • 12
  • 31
4
votes
1 answer

Set focus to a uifigure window

How can I set focus to a uifigure after the focus is switched out to a different figure? For uicontrol, it is possible with set focus on one of its child elements. For example: % create a new uicontrol text label h =…
Anthony
  • 3,595
  • 2
  • 29
  • 38
4
votes
2 answers

How to customize the background of an App Designer figure?

I'd like to attach a logo or change the whole background of an App Designer uifigure. How can this be done?
3
votes
0 answers

Tag coordinates and ginput - Matlab

I wish to tag/mark coordinates on an axes in App designer using this simple code but without success. Any idea how to do it directly on the axes (app.ImageAxes)? Code: function ButtonPushed(app, event) …
JohnSal
  • 378
  • 3
  • 11
3
votes
1 answer

Missing axis in uiaxes - matlab

I used app designer to build an image viewer GUI. When I load an image to app.UIAxes the axis ticks disappear. Any idea how to solve it?
AsiJapan
  • 313
  • 1
  • 10
3
votes
0 answers

Color picker using uisetcolor - Matlab

I am trying to do a color picker in Matlab 2020b using this line c = uisetcolor. I have two questions that an assistance will be appreciated: When I run the code I get the default image (A) but I wish that it will automatically appear like in B, is…
elyraz
  • 473
  • 5
  • 18
3
votes
2 answers

How to make a uifigure the current one in Matlab

I have a script that creates multiple uifigures: % create fig1 fig1 = uifigure('Name', 'Figure 1'); % create fig2 fig2 = uifigure('Name', 'Figure 2'); % set fig2 as the current figure set(0, 'currentfigure', fig2); % get the current figure gcf I…
LukasFun
  • 171
  • 1
  • 4
  • 17
1
2 3
12 13