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
3
votes
3 answers

How to save the App desginer GUI - MATLAB

I am trying to save all the GUI while it is running using a button (based App designer). I used gca and as expected it only save the axes (using gcf result a white image), any idea how to solve it? and how I block Figure 1 from popping…
hs100
  • 486
  • 6
  • 20
3
votes
1 answer

Delete row in a UItable upon selection using right mouse button - Matlab 2020a

In this function (app designer) I delete a row in a table upon selection using the left button of the mouse, how can I use the right button or another key+mouse combination for selection instead of the left? Code: % Cell selection callback:…
AsiJapan
  • 313
  • 1
  • 10
3
votes
2 answers

Why is my line object being registered as a double in app-designer Matlab?

In Matlab, if I were to do this: lines lines(1)=plot(1:5,1:5) lines(2)=plot(1:10,1:10) Lines would be registered as a vector that stores line objects, however in App-Designer, I did the same thing, but it somehow interprets the objects as doubles…
A.B.
  • 81
  • 6
3
votes
1 answer

Want to display first frame of video in app designer matlab

I am trying to show the first frame of a video on a GUI in app designer. So far, everything seems to process, and I am not receiving any errors, but the image I want is not showing. All I get is the UIAxes disappears, and nothing shows up. When I…
Qiana Curcuru
  • 67
  • 1
  • 6
3
votes
1 answer

How use 'waitfor' or 'uiwait' in app designer of MATLAB?

How use waitfor or uiwait in app designer of MATLAB? These funtions only work with figures (GUIDE) not app designer windows. How can I have same behavior in app designer? I'm waiting for closing second window before continuing codes of main window.
Eghbal
  • 3,892
  • 13
  • 51
  • 112
2
votes
1 answer

Matlab App built in runtime 9.10 runs significantly slower in runtime 9.7

I have an app I wrote in Matlab app designer, built in Matlab 2020a (v9.10 runtime environment). I have to compile it in v9.7 runtime though. When I do this it runs significantly slower. The function that runs the slowest is, conceptually: Output =…
Sam
  • 93
  • 5
2
votes
1 answer

How to programatically export .mlapp to .m?

In the App Designer there is an option Save -> Export to .m File... Is there a function available to do the same from the Matlab Command Window? I'm aiming for something I can use as a git precommit hook.
OrangeDog
  • 36,653
  • 12
  • 122
  • 207
2
votes
1 answer

Add jpg file names to a list box and select one for watching - Matlab

How can read a selected jpg from this list box and view it in an axes? function selectFolderButtonPushed(app, event) app.selectedPath = uigetdir(); jpgFileInfo = dir(fullfile(app.selectedPath, '*.jpg')); …
lroca
  • 621
  • 2
  • 8
  • 19
2
votes
1 answer

Table fields in format in PDF report generator - Matlab

When I save a table as PDF (using report generator) I do not get the numeric fields (Index1, Index2, Index3) shortG format (total of 5 digits). What is the problem and how can I fix it? The code: function ButtonPushed(app, event) import…
lroca
  • 621
  • 2
  • 8
  • 19
2
votes
1 answer

Quit an App designer GUI using a code - Matlab

How can I quit an App designer GUI using a button? I tried this and it does not work: function QuitButtonPushed(app, event) fig = uifigure; selection = uiconfirm(fig,'Close software?','Quit', 'Icon','warning'); …
AsiJapan
  • 313
  • 1
  • 10
2
votes
1 answer

Matlab-GUI warning when using parfeval(): "Unable to save App Designer app object."

I am trying to call parallel functions within my Matlab-GUI by pushing a startbutton. For the beginning I tried to call one single function ("ReadTwinCAT") but I'm always getting the following error-message: "Warning: Unable to save App Designer…
2
votes
1 answer

How to control the style of uitable headers?

Consider the following code that adds a table to a UIFigure: hF = uifigure(); hT = uitable(hF, 'Position',[1 1 72 112], ... 'Data', [ (5:5:20).' + "K", 100+zeros(4,1) + "%" ], ... 'ColumnName', [compose("\x0394T"), "SR"], 'RowName', [],... …
2
votes
0 answers

Deriving a class from matlab.ui.container.GridLayout

I am still playing around with the uifigure components. As I explained yesterday, I'm interested in understanding matlab.ui.container.GridLayout to eventually use it as a base for some widgets. But I experience the following behaviour when I derive…
Patrick Happel
  • 1,336
  • 8
  • 18
2
votes
1 answer

How to correctly clean up after App Designer apps

In MATLAB's App Designer, the only editable 'destructor' I have found is the UIFigureCloseRequest callback. However, this does not seem to get called in all cases that an App Designer app can be closed. For example, add a timer as a property to the…
zeeMonkeez
  • 5,057
  • 3
  • 33
  • 56
2
votes
1 answer

How to load seperate .mat files using a drop down component in App Designer?

I have separate .mat files, trials in a study, which consits of the same variables but the value change between files. I want to use a drop-down component in MATLAB app designer to select a file, load its variables and display various plots. Any…
CarSmyth
  • 48
  • 6
1
2
3
12 13