Answered
How to compare two colors?
Samah - with R2014a, if I create a pushbutton and then call get(handles.pushbutton1,'BackgroundColor') an array of three ...

9 years ago | 1

| accepted

Answered
Not enough input arguments
aicha - when I run your *main* script, I observe the following error Undefined function 'Ulim' for input arguments of type ...

9 years ago | 0

| accepted

Answered
add lines cell matlab
Presumably you have two multiline edit text controls such that when you call get(handles.edit1,'String') a cell array is ...

9 years ago | 0

| accepted

Answered
loop for matlab array
Try removing the space between the *else if*. Re-write this as if a(i)==0 c = [-1.*b] ; elseif a(i)==1 c = [...

9 years ago | 0

Answered
How do i link my menu bar function to my for loop. [Error indicates Not Enough Input argument]
Kenneth - please show the callback which includes the code that calls the *Agecategory* function. Given the error message and t...

9 years ago | 0

| accepted

Answered
hi guys help please,guide result save in excel
abdel - in the callback for your push button, you would <https://www.mathworks.com/help/matlab/ref/xlswrite.html xlswrite> to up...

9 years ago | 0

Answered
Generating random numbers from a certain interval
area - 1.1902e-004 is an alternative format to writing 0.00011902 which is a valid number within your interval. Try calling ...

9 years ago | 0

| accepted

Answered
I need to plot a sine wave
Francis - from an example at <https://www.mathworks.com/help/matlab/ref/fft.html fft>, we can do t = 0:0.01:1; f = 15; a...

9 years ago | 0

| accepted

Answered
Trying to open a new pannel when checkboxes are filled but dont work
You are treating your *case* statements as if they are conditions case checkboxgable == 1 or case checkboxgable == 0 ...

9 years ago | 0

| accepted

Answered
Finding element in java LinkedList
Jakub - if you just want to compare each element in your linked list to a specific array, checking to see if the first *n* eleme...

9 years ago | 0

| accepted

Answered
If statement four variables
Ilona - <https://www.mathworks.com/help/matlab/ref/diff.html diff> is a built-in MATLAB function, so I would avoid using it as a...

9 years ago | 1

| accepted

Answered
How to debug the 'matrix dimension not agree' when solving matrix time by time using loop (with code)
Sichen - if you step through your code, you will note that *X* is initially a 4x1 but after solving for *X* as X = b\A; i...

9 years ago | 0

Answered
find few elements in vector
Kerim - try using <https://www.mathworks.com/help/matlab/ref/ismember.html ismember> or <https://www.mathworks.com/help/matlab/r...

9 years ago | 0

| accepted

Answered
Focus of a plot within a GUI after clicking on other plots
Devin - why don't explicitly reference the axes that you wish to plot the data to? According to <https://www.mathworks.com/help...

9 years ago | 0

Answered
HOW TO MAKE CODING FOR THIS FORMULA. I'M LITTLE BIT CONFUSING ABOUT STRNUM
nursuhailah - in the push button callback, you would get the value of the pop-up menu and the resistance value text, and do the ...

9 years ago | 0

Answered
Create and open new fig
Ryan - if you mean that you have created another GUI (using GUIDE) and you wish to open that other GUI from within the first one...

9 years ago | 0

| accepted

Answered
Create a function from another function with less parameters
Dave - try nesting the second function within the first (see <https://www.mathworks.com/help/matlab/matlab_prog/nested-functions...

9 years ago | 0

Answered
Hi! Can you guys help mi with this code? The error is "Undefined function 'plus' for input arguments of type 'function_handle'."
Felipe - the error message is due to the line sum = sum + a; where you are trying to add a running total (named *sum* whi...

9 years ago | 0

Answered
Error in execution?
Masooma - you have a period separating the *y* and the *T* rather than a comma. Just change your last line to T_target=inte...

9 years ago | 0

Answered
How to access figures with changing slider bars?
Micheal - you say that you have _already created the 9 bar plots in a matlab file_. Does this mean that these bar plots are alr...

9 years ago | 0

Answered
plot graph in GUI
sagi - consider using <https://www.mathworks.com/help/matlab/ref/str2func.html str2func> which will convert the character string...

9 years ago | 0

Answered
How to Create a GUI which breaks a continuous signal into its even and odd components?
Aman - depending upon your version of MATLAB, you may want to use <https://www.mathworks.com/videos/creating-a-gui-with-guide-68...

9 years ago | 0

Answered
How to stop while loop in one buttons's callback function from another button's callback function in Gui?
Momin - you can use exit the *while* loop by using a flag that is set in the second push button callback. For example, func...

9 years ago | 2

Answered
Play back speed in a popupmenu
Dan - given your use of *hObject*, I'm guessing that you have created your GUI using GUIDE. Is this the case? I think that rat...

9 years ago | 1

Answered
How to stop a script if a warning appears repetetively?
Zied - how do you determine the repetitive warning? If your code can recognize the poor/bad data, then you will be able to exit...

9 years ago | 0

Answered
how to write multiple images into a folder
Tuffahatul - it isn't clear why there is a command to create a *parentFolder*. Is this where you intend to put the new images? ...

9 years ago | 1

| accepted

Answered
Hello everybody, please help with problem
Denys - this is clearly a homework assignment so we can only give out hints...especially when you don't even try to post anythin...

9 years ago | 0

Answered
How can I redo it by using for loop
ASA - I suppose if it is the main part of your code that you wish to iterate/loop over, you could do something like tmin=0;...

9 years ago | 0

| accepted

Answered
Converting a .tiff sequence to a .avi video file
Dries - consider using the <https://www.mathworks.com/help/matlab/ref/videowriter.html VideoWriter> object. A couple of very ba...

9 years ago | 0

| accepted

Answered
Pass data from a callback function
Matthias - since you are using GUIDE, I think what is missing from your callback is the call to <https://www.mathworks.com/help/...

9 years ago | 0

Load more