Respondida
problem with togglebutton callback
function togglebutton1_Callback(hObject, eventdata, handles) ispushed=get(hObject,'Value'); if ispushed set(hObj...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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;...

más de 10 años hace | 1

Respondida
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 ...

más de 10 años hace | 0

Respondida
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. ...

más de 10 años hace | 0

| aceptada

Respondida
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 ...

más de 10 años hace | 3

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 2

Respondida
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...

más de 10 años hace | 1

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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 ...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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 ...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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 (...

más de 10 años hace | 0

| aceptada

Respondida
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 ...

más de 10 años hace | 0

Respondida
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 ...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 3

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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 ...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 3

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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 ...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

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

más de 10 años hace | 0

Cargar más