Answered
sharing data between GUİ functions?
Atas - use the *handle* structure which has the handles to all of the GUI controls. In your case you will want to do something ...

11 years ago | 0

| accepted

Answered
Why does uigetfile() changes the uploaded image dimensions? Is there any other way to upload image into GUI without changing images dimension?
Sana - the problem is not with *uigetfile* because it does not return a file. It just returns (in your use of it) a string to t...

11 years ago | 0

Answered
Explain the working of commands..
harpreet - which commands in particular? All of them? Presumably you have a file (image) that you want to analyze using the SI...

11 years ago | 0

| accepted

Answered
how to make a function that takes vector as input and generate matrix of its elements
Muhammad - a couple of things to consider. Try not to use *i* and *j* as indexing variables since both also represent the imagi...

11 years ago | 1

| accepted

Answered
how to rectify this error and make the code work?
Anushree - since your *p* and *q* are determined by [p,q,r]=size(I'm); and your conditions for the *while* loop are i...

11 years ago | 0

Answered
Can we vectorize a procedural for/if operation?
xiao - if the idea is to find the first element of the cumulative sum of *divid* that is greater than *rand_num* then you could ...

11 years ago | 0

| accepted

Answered
How do I get the "depth" of a tree?
Staffan - how is your tree represented? As a matrix or some sort of list of nodes connected to other nodes? I suspect that you...

11 years ago | 0

Answered
How could i ouput chinese text strings to a txt file?
Bryan - I think that you are correct about needing the appropriate encoding though am not sure if you can do that with *csvwrite...

11 years ago | 0

Answered
getappdata and setappdata (or get and set)
HRmatlab - the reason that it works is because you must be pressing the push button before the five second pause has elapsed (an...

11 years ago | 0

Answered
Why do 4 out of 10 legends for line plots not match the line style specified?
Cori - what you can tell us about the dimensions of your arrays? i.e. what does the following return for each one size(mweb...

11 years ago | 1

Answered
I have created a GUI where I have created push buttons for output and linked them to plot a graph. Each code uses a few input parameters like frequency etc. I want to be able to input values in GUI using edit boxes which will change the output. How?
Aayush - you can use the *handles* structure (the third input to your callback) to reference the edit text controls. Note that ...

11 years ago | 0

| accepted

Answered
How to retrieve data from one gui to another?
Nur - see <http://www.mathworks.com/matlabcentral/answers/146215-pass-data-between-gui-s> as one example on how to pass data bet...

11 years ago | 0

| accepted

Answered
How can I convert MATLAB code into C code?
Ricardo - see <https://www.mathworks.com/programs/nrd/matlab-convert-to-c-trial-request.html?ref=ggl&s_eid=ppc_2789 MATLAB to C ...

11 years ago | 1

Answered
Riemann Sums; how to input interval as well as function f(x)?
Keith - you have only mentioned part of the error message, that _something_ is _undefined_. Presumably it is *f* and *g* since ...

11 years ago | 0

Answered
Sine wave signal stop time
John - just do as before but specify *t* as t = 0: dt: 2-dt; Once you have called plot(t,x1); you will see data fr...

11 years ago | 0

| accepted

Answered
Find the minimum function (x-4)sin(y) using genetic alghorithm
Elena - see <http://www.mathworks.com/discovery/genetic-algorithm.html Genetic Algorithm> for examples on how to solve this prob...

11 years ago | 0

| accepted

Answered
hey, I have two GUIs and I want to transfer data in text1 from the first GUI to the text2 in the second GUI. please explain it with simple example.
Hisham - see <http://www.mathworks.com/matlabcentral/answers/146215-pass-data-between-gui-s> for an example of how to pass data ...

11 years ago | 0

Answered
Share data from a function to pushbutton call back in gui
Mehedi - if you want *data1* to be used by your pushbutton3 callback, then just add this variable to the output parameter list o...

11 years ago | 1

Answered
Matrix dimensions must agree
Ismail - using the .* implies that you want to do <http://www.mathworks.com/help/matlab/ref/times.html element-wise multiplicati...

11 years ago | 0

| accepted

Answered
I am working with gui. here i plot multiple line in a same graph.I want to add the function "When i select a point on the line in the graph.he can delete the selected line"
Mehedi - see the attached GUI that can be used to demonstrate how you might delete a line from a graph given the position where ...

11 years ago | 1

| accepted

Answered
uigetfile MultiSelect does not work on Mac?
Yan - yes, multiple file select is supported on a Mac. Using your above line of code on OS X 10.8.5 (with MATLAB R2014a) I was ...

11 years ago | 0

| accepted

Answered
Recording two Audio simultaneously
mohanad - rather than use <http://www.mathworks.com/help/matlab/ref/audiorecorder.recordblocking.html recordblocking> which _doe...

11 years ago | 0

| accepted

Answered
How do i create GUI using projectile motion? The GUI is required to be able to input value of x0,y0,v0x,v0y and also able able user to press'redraw plot' button to update figure for projectile motion
Yeap Jia Wei - try using <http://www.mathworks.com/videos/creating-a-gui-with-guide-68979.html GUIDE> to create a GUI that will ...

11 years ago | 0

| accepted

Answered
how to read a .txt file and change the value of a parameter in that file
Ashehad - the *replacePAR* function seems to have been written for files of a certain format (MAESTRA/MAESPA input files). Is t...

11 years ago | 0

| accepted

Answered
Plotting a for loop
Chris - note how you are calling the *plot* function plot(d,T(d),'-or') you are passing *d* as the first input and as the...

11 years ago | 0

Answered
help me to solve error in integer coding
izayn - the problem in the line imgN = double(img-min(img(:)))/(max(img(:)-min(img(:)))); is that the double(img-min...

11 years ago | 0

Answered
Debugging a nested function
Peter - see <http://www.mathworks.com/help/matlab/matlab_prog/variables-in-nested-and-anonymous-functions.html variables in nest...

11 years ago | 0

| accepted

Answered
Receive value in Matlab GUI
Thanadech - presumably the function *LogDataB* is called from the callback of your start button. Is this the case? Note that y...

11 years ago | 0

| accepted

Answered
I can't figure why this legend is not working
Alex - you could use <http://www.mathworks.com/help/matlab/ref/repmat.html repmat> to produce the second input to your calls to ...

11 years ago | 0

Answered
How do I update an image in gui using selections?
Nina - if you wish to have one callback access the variables created in another callback (for example, your *dp1*) then you can ...

11 years ago | 0

Load more