Réponse apportée
problem with togglebutton callback
function togglebutton1_Callback(hObject, eventdata, handles) ispushed=get(hObject,'Value'); if ispushed set(hObj...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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;...

plus de 10 ans il y a | 1

Réponse apportée
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 ...

plus de 10 ans il y a | 0

Réponse apportée
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. ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 10 ans il y a | 3

Réponse apportée
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...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 2

Réponse apportée
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...

plus de 10 ans il y a | 1

Réponse apportée
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...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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 ...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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 ...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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 (...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 10 ans il y a | 0

Réponse apportée
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 ...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 3

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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 ...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 3

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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 ...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 0

Charger plus