Questions tagged [matlab-guide]

This tag is NOT for "guidance" on MATLAB questions. GUIDE, is a graphical user interfaces (GUI) design environment in MATLAB. This tag relates to the development of MATLAB applications with a GUI using the interactive GUIDE layout editor.

GUIDE, is a graphical user interfaces (GUI) design environment in MATLAB. This tag relates to the development of MATLAB applications with a GUI using the interactive GUIDE layout editor, as opposed to the AppDesigner tool or creating GUIs programmatically.

MATLAB is a high-level language and programming environment developed by MathWorks.

Additional sources of technical information on these topics include:

1363 questions
8
votes
2 answers

Make a pixel transparent in Matlab

I have imported an image in matlab and before I display it how would I make the background of the image transparent? For example I have a red ball on a white background, how would i make the white pixels of the image tranparent so that only the red…
omegaFlame
  • 245
  • 3
  • 9
  • 21
7
votes
1 answer

How can I fill an area below a 3D graph in MATLAB?

I created the following 3d plot in MATLAB using the function plot3: Now, I want to get a hatched area below the "2d sub-graphs" (i.e. below the blue and red curves). Unfortunately, I don't have any idea how to realize that. I would appreciate it…
Peter123
  • 557
  • 1
  • 5
  • 13
7
votes
1 answer

Drag and drop files in Matlab GUI

I am trying to find a way to use drag and drop in my matlab GUI. The closest I've found is this. However, I would like the result to look like this: When a file has been dropped, all I need is the path of the file and a call to my load…
jkazan
  • 1,149
  • 12
  • 29
6
votes
1 answer

Buttondownfcn doesn't work on slider

I'm making a simple real time data viewer with buttons like play, pause and slider using MATLAB GUI. After the user presses play slider needs to be updated every step (50 samples per second). That functionality is interfering with manually moving…
Vladimir Perković
  • 1,351
  • 3
  • 12
  • 30
6
votes
1 answer

How can I create a matlab multi-line edit box in Guide?

I am fairly new to Matlab and I am using GUIDE to create a GUI. I am looking to make a GUI that I can enter an item name and description and other stuff and then upon submit, they will be submitted into database. My question is how to make a…
Momo
  • 523
  • 3
  • 11
  • 23
6
votes
2 answers

MATLAB GUIDE gui listbox intermittently disappears with seemingly obsolete error

I am building a straightforward MATLAB gui using GUIDE. I have a listbox of items. Most of the time, it works as expected, but sometimes (usually after I edit the figure with GUIDE) populating the listbox causes it to disappear, along with this…
6
votes
2 answers

How to display a scrollable grid of images in matlab GUI

How can i display a scrollable grid of images in matlab GUI? I want something similar to what is shown below This stackoverflow post describes a way of displaying images in a uitable by setting the 'String' property to an HTML code pointing to an…
cdeepakroy
  • 2,203
  • 3
  • 19
  • 23
6
votes
3 answers

Drawing with mouse on the GUI in matlab

I want to have a program in matlab with GUI, at run the program, user can draw anythings with mouse on the axes in GUI, and i want to saving created image in a matrix. how can i to do this?
hamed aj
  • 1,960
  • 8
  • 27
  • 38
5
votes
2 answers

How to align text to the top of the button in Matlab GUI?

I have a GUI with big buttons and wouls like to align the text in the button to the top, all I found is "horizontal alignment" property. Thanks...
A S
  • 2,924
  • 5
  • 22
  • 27
5
votes
1 answer

Execute a function when the colormap changes

I am working on a GUI control MATLAB (2014a) program with a plot window that shows a contour-like plot on top of a pcolor-based plot. The users found out, that the colormap can be changed by right-clicking the colorbar. This change does however only…
Tim
  • 1,430
  • 15
  • 36
5
votes
2 answers

Function that executes on GUI closing in matlab

I am creating a GUI in matlab using guide. It's non-blocking (not calling uiwait). When the gui window is closed, I would like to execute some clean up code. Is there an gui_ClosingFcn callback I should define in analogy to the gui_OpeningFcn…
Marc
  • 5,315
  • 5
  • 30
  • 36
5
votes
1 answer

Matlab Gui compatibility - Different aspects between Linux and MacOS

I have a problem of compatibility between Linux and MacOS with a Matlab Gui. The graphical interface is developped under Linux Debian 7.0. Here's the aspect on this platform : Now, I execute the .m file on MacOS and here's the result : As you can…
user1773603
5
votes
2 answers

Stop A GUI in a middle of process in MATLAB

I'm designing a GUI using GUIDE in MATLAB R2014b. My program has a long loop (takes 2~5h to process). I want have a button in my GUI that the user stop the process every time he/she want (The GUI is updating graphs and texts continuously based on…
Eghbal
  • 3,892
  • 13
  • 51
  • 112
5
votes
1 answer

How to pre-set cursor or selection for default answer in input dialog

If one creates an inputdialog with inputdlg and a default answer, it looks like that: Which callback command do I need to make it look like that? The documentation is missing a lot here. It's a kind of "luxury service" for the customer ;) But I…
Robert Seifert
  • 25,078
  • 11
  • 68
  • 113
5
votes
1 answer

How to remove axis in MATLAB

axis off Not working. function displayResults(filename,hObject, eventdata, handles) % Open 'filename' file... for reading... fid = fopen(filename); for N=6:1:10 imagename = fgetl(fid); if ~ischar(imagename), break, end % Meaning: End…
Chethan
  • 213
  • 3
  • 7
  • 19
1
2
3
90 91