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
-1
votes
1 answer

how to get path of folder and give that path to a seperate function in matlab

I want to make a gui in which a push button is when pushed will search for a file/folder and when it does it will give that path to another function seperate which will do some processing after it gets a path. So far I did this function…
Muhammad
  • 67
  • 1
  • 1
  • 7
-1
votes
1 answer

how to push a toggle button in a GUI programmatically?

I would like to find a programmatic way to toggle a toggle button in Matlab's GUI (built by GUIDE). The button has a callback function, that uses the second input (eventdata, that's quite rare). However, calling this function from outside the GUI…
NoamG
  • 137
  • 9
-1
votes
2 answers

can you help me write a code for all 'ht' from the ytop and ybot values in matlab?

Can anyone please help me write this code for all 'ht' in matlab?. Thank you. ytop=[0 0 2.4 5.0 5.0 5.0 5.0 5.0 5.0 5.0] ybot=[0 -2.4 -3.9 -4.7 -4.9 -4.7 -3.8 -2.3 0.1 5.0] ht=((ytop(2)-ybot(2))+(ytop(1)-ybot(1)))/2
-1
votes
1 answer

window different from PC to Mac

A professor gave me a matlab code written on a PC (with OS windows). On his computer the window was well placed and everything was able to read and to perform. Now on my Mac the window (the window appears after clicking Run) seems quite different.…
robin
  • 23
  • 1
  • 5
-1
votes
1 answer

MATLAB - Starting a function automatically after GUI loads

I have a Matlab application that has GUI in it. I am now trying to automate some operations and i need to call a function right after the GUI loads without any human in the loop. (Basically simulating human button clicks...) I have tried calling the…
Eitan Vesely
  • 125
  • 3
  • 16
-1
votes
1 answer

Creating a new field in a MatLab guide handles

I am starting with MatLab. I created a guide UI. I went ahead and assumed I could just add new feild to the handles structure created. Can I do this? For example, when I refer to handle.s in my program, I get an error that I am reffering to a non…
Ethienne
  • 111
  • 1
  • 3
  • 12
-1
votes
4 answers

Closing MATLAB GUI application programmatically without using error()

I am trying to make it so the application/gui closes completely if the user clicks cancel or exit of an input dialog. The tag of my gui is called window however using close(handles.window); leads to the program looping through once and then (after…
Roy
  • 3,027
  • 4
  • 29
  • 43
-1
votes
1 answer

Converting a MATLAB GUI to .exe with trial version of MATLAB

I am using MATLAB 2015a trial version. I developed a MATLAB GUI, and I want to convert it to a .exe file, which I will be able to open when my trial will be over. I searched the web and found out that I have to use MATLAB Compiler in order to…
Guy Ben Hemo
  • 110
  • 13
-1
votes
1 answer

MATLAB GUI history box

I'd like to create an edit box that takes in commands I'll be using in my algorithm and save those commands to another edit/listbox to be used again. Can anybody help? I'm using GUIDE for my GUI. Thanks! % Begin initialization code - DO NOT…
greg
  • 149
  • 1
  • 10
-1
votes
1 answer

overlaying location map (coastline) on slice plots in MatLab?

I made plots of depth slices using function slice, with each slice showing earth's velocity distribution. I am having a hard time overlaying the location map (coastline) on the figure. Does anyone know if this is possible with MatLab? OR Can you…
QP1
  • 15
  • 4
-1
votes
1 answer

Matlab GUI axes extract position from datacursor

hope anyone can help me. I try to load and display a image in my GUI. After that i activate datacursormode. Now I want to extract the position from my datacursor object and save the informations into a global variable to work on this data. Here is…
AngelsEnd
  • 43
  • 5
-1
votes
1 answer

Error working with data of a uitable, matlab

I'm just trying to get some user inputs from an uitable (made with GUIDE), and save this inputs as doubles to calculate another value and put on the uitable So here is the code... % --- Executes on button press in CTE. function CTE_Callback(hObject,…
-1
votes
2 answers

Update a M.file variables from command windows in Matlab?

I have a simple but interesting question. i tired hard to google it but my google got upset and giving me the same results... i wanted to know is it possible to Update a constant variable form workspace command.. A Simple Example: function y…
user2851655
  • 133
  • 2
  • 9
-1
votes
1 answer

Vary the Random number sampling time when it control over digital clock (built in Block) with different sampling time inside Embedded MATLAB function?

My code is (inside embedded MATLAB function): function y=example(t) y=rand(1,1)*t; t is digital clock input (simulation block) with sampling time (1/1e6). The y also generates a random number sequence (uniform distribution) in 1/1e6 sampling time.…
viz
  • 15
  • 6
-1
votes
1 answer

Displaying more than one image in a GUI

First and second images are displayed damaged First original image Second original image I have two .bmp images and I want to show them in two different axes in a Matlab GUI. function pushbutton1_Callback(hObject, eventdata, handles)…
ffttyy
  • 853
  • 2
  • 19
  • 49