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

Logarithmic Scale Slider for GUI MATLAB

I'm having trouble to create a slider for GUI in MATLAB. I really want a slider that ranges from 10^-1 to 10^-5. But that has intervals by factors of 0.1. So the the slider would have a logarithmic scale. Anyone know how to solve this problem?
milkyway
  • 43
  • 5
3
votes
1 answer

How to join the same matrix several times to make a big matrix in Matlab?

I have a 4x1 matrix, A= [1;2;3;4] I want to make B such that its size is 4x50. All the elements in the columns must contain the same elements of A. For example, B= [1 1 1 1.... 1 1; 2 2 2 2.... 2 2; 3 3 3 3.... 3 3; 4 4 4 4.... 4 4] In this…
Chris33
  • 103
  • 2
  • 8
3
votes
2 answers

How to update a uitable after creation from other functions?

I created a matfile in which I store data that are constantly overwritten by user behavior. This occurs in a function "test()". n=1 while n < 5 myVal = double(Test704(1, 780, -1)) %Returns the user's behavior if myVal == 1 n = n + 1…
3
votes
1 answer

How to extract data from saved figure of MATLAB?

I have a saved figure (.Fig) containing some axes like this: When I open this figure in MATLAB R2015a GUIDE I have this: Is anyway to extract data from every axes in this figure? If not, is anyway to extract one of the axes in the figure and use…
Eghbal
  • 3,892
  • 13
  • 51
  • 112
3
votes
1 answer

Which scaling technique does it use?

I have a matrix X, the size of which is 100*2000 double. I want to know which kind of scaling technique is applied to matrix X in the following command, and why it does not use z-score to do scaling? X = X./repmat(sqrt(sum(X.^2)),size(X,1),1);
Angelababy
  • 247
  • 3
  • 7
  • 16
3
votes
1 answer

Push button is only changing position once

I have a question about callback functions in MATLAB's GUIDE. I have the following code execute when a button is pushed: handles.xPos=handles.xPos+1 addX = handles.xPos handles.shape2 =fill ([-2+addX 1+addX 1+addX -1+addX], [1 1 -1 -1], 'r'); This…
3
votes
1 answer

Is there a simple way to display "table" in matlab GUI?

I save reports from my system in matlab in form of tables generated by the table() command. To display these tables, I was using the disp(myTable). This was fine when I was viewing the tables only in the shell. However, now I wish to build a GUI…
BoZenKhaa
  • 782
  • 1
  • 6
  • 22
3
votes
2 answers

How to get the previous value entered from a callback function?

I know that this is probably a simple problem but I am new to Matlab GUI's and basically want to get the old value which used to be stored in the text box to replace the value which has just been entered. E.g. Text box contains a valid string, User…
binarycreations
  • 3,091
  • 6
  • 32
  • 38
3
votes
1 answer

Matlab Calling 'Import Data' with GUI Button

I'm working in a GUI in Matlab R2014b that uses some data from a txt file, so i want to call the 'Import Data' window to permit the user select the data from a file when pushing a button. Is there a way to do this?
Isak Baizley
  • 1,722
  • 4
  • 16
  • 21
3
votes
2 answers

Matlab opens new figure in Callback despite hold

I am creating a GUI with MATLAB's GUIDE. Say, the GUI consists of an axis called axis1 and a slider called slider1. Further say I wanted to plot something (e.g. a box) into axis1 and change the box's height with the slider. I tried doing this by…
user1809923
  • 1,235
  • 3
  • 12
  • 27
3
votes
2 answers

How to pass function to radio button in a button group created using guide in MATLAB?

I have created a button group with four radio buttons and a push button using guide. There are four functions, one for each radio button written separately. How do you to call these functions from respective radio buttons. When a push button is…
vijisai
  • 31
  • 1
  • 1
  • 2
3
votes
2 answers

Change the color of x and y axis of a graph from a GUI in MATLAB

I am trying to change the color of a graph I created in MATLAB GUIDE. I initially set the colors of the x-axis and y-axis to be white in GUIDE but whenever I output to the graph, the both axes change color back to the default which is black. This is…
Baker Johnson
  • 253
  • 1
  • 3
  • 13
3
votes
1 answer

Single- and Multi-line Edit Controls

I'm writing a GUI in GUIDE but when I open it and when I perform an action I keep getting this warning: Warning: Single line Edit Controls can not have multi-line text > In openfig at 135 In gui_mainfcn>local_openfig at 286 In gui_mainfcn at…
Fodex
  • 55
  • 1
  • 7
3
votes
2 answers

Matlab GUI Edit Box - disable editing but must enable selection

I have a GUI wherein I need a box which will be contain the path of a particular file. I want the text to be selectable by the user but unavailable for editing. Please help me find the answer. Thank you in advance.
ash
  • 43
  • 4
3
votes
2 answers

Updating all components of a Matlab gui (created with guide)

My Matlab GUI is a form with many text fields that are initially populated using the same data struct. Each text field has a callback and a create function, where the text field is assigned the value of the given struct. However, at some later point…
user1186155
  • 238
  • 2
  • 10