Answered
Dynamic edit text box that displays only one number
Gary - I suspect that the problem with the *edit2* and *edit3* text boxes is with the following two lines of code set(handle...

10 years ago | 0

| accepted

Answered
why this fourrier transform is not good?
Kobi - why is your time domain initialized as t=linspace(0,1/f_max,fs); Aren't you interested in the full second since *f...

10 years ago | 0

| accepted

Answered
How to get two images side by side in GUI of MAT LAB?
Anindya - since you are creating a GUI, then you may want to use *GUIDE* as you may find it easier than the programmatic alterna...

10 years ago | 0

Answered
Hello all, I have declare a variable "ax" as global but this variable cannot fetch by SQL query and says "Undefined function or variable 'ax'". So how can we fetch this variable. Please give solution. thanks in advance.
Bhupendra - the error message is telling you exactly what the problem is. The *ax* variable has not been defined prior to you t...

10 years ago | 0

Answered
fprintf cell array to .txt file
Tyler - you won't need to create two separate arrays (vectors). To determine the length of an array you would use <http://www.m...

10 years ago | 0

Answered
How do I plot live data acquired via a NIDAQ inside a GUI window?
Eamon - <http://www.mathworks.com/help/matlab/ref/animatedline.html animatedline> allows you to specify which axes you wish to c...

10 years ago | 0

Answered
I’m new,and i need help.What do I need to enroll as a code for this task.
Luka - this seems like homework so ask yourself how you would do this by hand? You start with 5 and multiply it by 4 and then b...

10 years ago | 0

Answered
GUI guide_Interactive buttons
Ahmed - add two static text controls to your GUI and then use these to show your mean and standard deviation. So in the code (c...

10 years ago | 0

Answered
Help with "reference to non-existent field 'xxx'" GUI
Andreas - the first part of your posted code shows how *fdata* is initialized in the GUI dummy=size(handles.pData); fdata=...

10 years ago | 0

| accepted

Answered
How to load a .mat file with a push button, calculate the data using my own functions and plot a figure in a GUI made in GUIDE.
Andreas - yes, if your mat file consists of the variables *p*, *t*, *x*, and *y*, then if your first pushbutton callback does ...

10 years ago | 0

| accepted

Answered
How do I concatenate my changing output from a while loop?
Yogesh - since the outstanding balance is *p*, then this is the value that you want to save on each iteration of the *while* loo...

10 years ago | 1

| accepted

Answered
How to change the Background for GUI
Mohammed - it looks like you have used some of the code from <https://www.mathworks.com/matlabcentral/answers/96023-how-do-i-add...

10 years ago | 0

| accepted

Answered
GUI object not responding to left click
Arnav - when I use the above code in the *WindowButtonDownFcn* callback for my figure (not the edit text box), then MATLAB has n...

10 years ago | 1

Answered
Why is audiowrite scaling my int32 data?
Mason - I don't think that the problem is with <http://www.mathworks.com/help/matlab/ref/audiowrite.html audiowrite> for your in...

10 years ago | 1

| accepted

Answered
How can i create multiple choice questions GUI using Guide ?
Prashanth - if your radio buttons have been created within a uipanel (which given your screenshot appears to be the case) then y...

10 years ago | 2

Answered
I used the following code to create a graph with two y axis. Everytime I push the execute button, the legend and values of left Y axis gets bolder and bolder as if the plot isn't replaced and the more I push the botton, the slower gets matlab.
Abdul - have you tried <http://www.mathworks.com/help/matlab/ref/cla.html clearing the axes> before drawing to it again? You ar...

10 years ago | 1

| accepted

Answered
How to audiowrite a soundfile from m4a to wav?
Laura - I think that you want to use <http://www.mathworks.com/help/matlab/ref/audioread.html audioread> first as m4AFilenam...

10 years ago | 0

| accepted

Answered
How to put the values into adjacent matrix?
Beibit - it seems that the second column of your matrix *A* is ignored, so the code would just be A=[2,2; 4,2; 3,4; 3,1]; ...

10 years ago | 1

| accepted

Answered
How to declare multiple global variables?
hello_world - remove the commas that separate your global variables. So instead of global Domain1, Domain2, Domain3; do ...

10 years ago | 4

Answered
How do i calculate True data values being plotted from a mouse coordinate
ayar - since you have four subplots (or axes) you will need to determine which axes your mouse cursor is hovering over before yo...

10 years ago | 0

| accepted

Answered
How to write a Script using a function that accepts individual inputs?
John - so rather than passing in a single name, pass in a cell array of names. Your function signature would then become fun...

10 years ago | 0

| accepted

Answered
Hello, how to read a BMP image in MATLAB?
Bal - I get the same error when using R2014a. However, I was able to load this image into MATLAB as follows >> open('curren...

10 years ago | 0

Answered
Scanning inputs from mouse in two images
Ankit - according to <http://www.mathworks.com/help/matlab/ref/ginput.html ginput>, _[x,y] = ginput(n) enables you to identify n...

10 years ago | 0

Answered
Retrieve Imline handle from axes
Matt - which version of MATLAB are you using? If you are using an older version of MATLAB, you may not have the ability to call...

10 years ago | 0

Answered
Problem with multi-line in TextEdit box
stani7062 - in your above *for* loop, you are replacing the *String* property for the text box on each iteration of the loop. R...

10 years ago | 0

| accepted

Answered
Run single equation many times
Luke - on each iteration of the *for* loop, you are summing the same *B* that was initialized outside of the *for* loop W(i+...

10 years ago | 1

| accepted

Answered
Save GUI editbox values to workspace variables
rb250660 - if you are trying to create a _pretty version of inputdlg_ then you should try to match your function signature with ...

10 years ago | 0

Answered
How can I send data to the same COM port from different functions without having to constantly open the comport?
Yasir - try saving your serial port object to the *handles* structure so that the other callback will be able to access it. For...

10 years ago | 0

| accepted

Answered
How do I convert the dimesion of a matrix from 1 m n to m n?
Leon - you can use <http://www.mathworks.com/help/matlab/ref/squeeze.html squeeze> to remove the singleton dimension.

10 years ago | 0

Answered
How to run multiple instances of the same gui using a loop?
Bari - rather than using a global variable array, just pass that string into the call to *testGui2* as for j = 1:length(Hell...

10 years ago | 1

| accepted

Load more