Answered
change the values of X axis in histogram to codes
Your tick values need to be in the same range as your data. You haven't included the data you put in the histogram (diagnosis_t...

10 years ago | 0

Answered
Undefined function or variable "sum".
isum=sum(indi,:); is not valid syntax for the builtin sum function as far as I am aware. It is a syntax that would be co...

10 years ago | 0

Answered
Copy the most recent files from sourcefolder and check their existence in destinationfolder before copying
You can use something like sourceFile = 'D:\SomeLocation\somefile.m; destinationFile = 'D:\SomeOtherLocation\somefile.m;...

10 years ago | 1

Answered
How to plot variables from many m files(script files) in Mainfile.m(script file)
Just have each file save its workspace to a matfile if that is what you want. Then load the matfiles in the one in which you ...

10 years ago | 0

Answered
When using a checkbox in a GUI how do i undo the effects of the Checkbox
Use a switch or if statement in the callback. That is the standard method I use for dealing with radio buttons or checkboxes. ...

10 years ago | 0

| accepted

Answered
Experts of MATLAB, how did you learn? Any advice for beginner/intermediate users?
I hadn't noticed this question at the time (or I think maybe I did, but Stephen's answer was so comprehensive as regards advice ...

10 years ago | 3

Answered
Changing listbox max and min values from within a program (GUIDE)
GUIDE GUI components are all stored in the 'handles' structure which is accessible in every (auto-generated) callback within you...

10 years ago | 0

| accepted

Answered
Not enough input arguments - Function
I am guessing you are just running your function using the 'Run' or 'Play' button in the editor. A function is not like a scr...

10 years ago | 0

Answered
Is there any alternate of "axes(handles.axes1)"
All plot functions take an axes as either the first argument or they allow you to set 'Parent', hAxes as part of the property-va...

10 years ago | 2

Answered
Attempted to access s(0); index must be a positive integer or logical.
Please use the {} Code block to format code properly. It is almost unreadable in that form! Also please indicate the line on...

10 years ago | 1

Answered
How to determine cursor position in 'edit' uicontrol
Probably you would have to get the 'CurrentPoint' from the figure and compare this against the 'Position' property of the edit b...

10 years ago | 0

| accepted

Answered
GUI - Populating listbox with the contents of a folder.
The error suggests that 'handles' is not a struct any more which it should be. This would be the case if, somewhere in your c...

10 years ago | 0

Answered
why am I getting an error with i=1:k thing?
If you are getting an error then please give us the full error message. Taking a wild stab in the dark I am guessing you are ...

10 years ago | 0

Answered
Problem with sprintf and evalin
I have never used evalin and hope never to do so, but it looks like you are missing quotation marks from around your IMG_0%d.CR2...

10 years ago | 0

Answered
Custom Ticks for X-Axis
You can edit the 'XTickLabel' property of axes to include whatever you want, provided you make sure it is of the same length as ...

10 years ago | 0

Answered
How can I set different colors for lines from nested loop?
Q=plot(Fplot,tgr,'color',ps{jj}); Shouldn't this line be getting its plot data from somewhere different each time round the...

10 years ago | 0

Answered
Link two button group with push button in Matlab GUIDE
handles.uipanel5.SelectedObject in your pushbutton callback will give you the selected object from that radiobutton panel (...

10 years ago | 0

| accepted

Answered
script wont run seems to be stuck in while loop
Well, you know your own code domain and what it is supposed to do better than anyone. It is too detailed for me to just glance ...

10 years ago | 0

Answered
how to find the column number of first zero element of each row
sum( abs( cumprod( yourMatrix, 2 ) ) > 0, 2 ) + 1; should work I think. I tested in on a small matrix I made and it seems ...

10 years ago | 0

Answered
Multiple objects sharing a context menu?
This is far too late top be of use to the person asking the question I am sure, but today I had to solve this same problem mysel...

10 years ago | 3

| accepted

Answered
With maltab compiler, is it possible to compile GUI built with Guide 2012b?
If it runs in the version of Matlab for which you have the compiler without problems then it will also compile. .m and .fig fil...

10 years ago | 0

Answered
I am currently attempting to use the find function in Matlab and can not get it to work. Help?
Floating point numbers are always very risky to use in absolute equality statements due to the way they are represented. You ...

10 years ago | 0

Answered
First Element Greater Than
a = [0, 4, 8, 19, 101, 120]; b = a( 1:find( a > 100, 1 ) ); This assumes the data is sorted which your example seems...

10 years ago | 3

| accepted

Answered
Best practice with class/GUI
I would generally use the GUI component callback in my class to update the class property or I would use a dependent property wh...

10 years ago | 0

| accepted

Answered
hObject, eventdata and handles doesn't appear in workspace
They shouldn't appear in the workspace. They appear in the scope of the callback function only. All functions have their own v...

10 years ago | 0

Answered
How to plot in uitabgroup simultaneously
Why do you have functions owning tabs? Or am I just misunderstanding your meaning? If you have kept the handles of all three...

10 years ago | 0

Answered
transfer function doesn't work
We can't see the full error message. Type which tf -all to see if Matlab really knows about the function. I suspect ...

10 years ago | 0

Answered
how to solve this error?
It's hard to know exactly what your code is, but if you do what it says in the error message it may fix your problem if your mat...

10 years ago | 0

Answered
Average of R,G,B channels
mean( rgbImage, 3 ); should work if your image is in n*m*3 RGB format.

10 years ago | 0

Answered
Error when Indexing and object + OOP
It likely depends what you are doing before that code. You would be best to pre-size your array of objects with e.g. Bolt(...

10 years ago | 0

| accepted

Load more