Answered
Figure of screen size
If you are in R2014b you can get screensize programatically as: screensize = get( groot, 'Screensize' ); In previous ver...

11 years ago | 3

| accepted

Answered
How can I access the code behind the uitable; if I create the uitable with GUIDE (not with the uitable-command)?
The uitable will have a 'Tag' property in your GUIDE gui. I always rename this to something sensible but if you don't it is pro...

11 years ago | 0

| accepted

Answered
Help defining a callback to enable a pushbutton
In what way does it not work? Does the act function even get called? If it does I'm guessing from your function signature that...

11 years ago | 0

Answered
How to overlay two plots created by functions?
hold( hAxes, 'on' ) after plotting the table and before plotting the balls should work unless I'm missing something.

11 years ago | 0

Answered
Help with for loops?
If I were you I would use a map as follows: keys = {'1'; '2'; '3';... 'X'; 'Y'; 'Z'}; values = {'.----...

11 years ago | 1

Answered
R2014b bug with colorbar tick labels?
Ok, immediately after posting this I noticed something that turned out to be the problem. My underlying data is now uint16 (y...

11 years ago | 0

| accepted

Question


R2014b bug with colorbar tick labels?
Has anyone else had problems like the following (or know what may be wrong) with colorbars in R2014b? I just changed some cod...

11 years ago | 1 answer | 0

1

answer

Answered
Logic for replacing numbers surrounded by zeros for a file of 350x350
I assume you mean each body of connected ones surrounded by 0s should be replaced by a number (as oppose to individual 1s that a...

11 years ago | 0

Answered
comparing two equal strings
~strcmp( str1, str2 ) strcmp compares the two strings for equality. In your case the two strings are equal so you can't ex...

11 years ago | 2

Answered
Struggling with slider control
What aspect exactly is "messed up"? Is your red line updating correctly when you move the slider? Given how far along its maxi...

11 years ago | 0

| accepted

Answered
how to change axes in loops
Your axes will each have a 'Tag'. If you used Guide to create your GUI which I am guessing you did from the 'handles' usage the...

11 years ago | 0

Answered
how can i run a .m file pressing a push button ?
Just call cropping_fun from your push button callback and pass it the 5 required arguments. You haven't given enough informat...

11 years ago | 1

Answered
Bisection Method GUI using Guide
The only thing I can see that that would output is: i = 1:itr One thing that does strike me as odd though - why does you...

11 years ago | 0

Answered
Subscripted assignment dimension mismatch.
Try splitting your maths into multiple statements to check each part more easily when you get problems like this. You set ...

11 years ago | 0

Answered
conditional statements and while loop
while (dif1 > tol) || (dif2 > tol) || (dif3 > tol) should work if you want to carry on until all are false.

11 years ago | 0

| accepted

Answered
How to select randomly among all positive value in a matrix
idx = find( m > 0 ); if isempty( idx ) idx = find( m2m2 > 0 ); if isempty( idx ) % Throw an ap...

11 years ago | 0

| accepted

Answered
Findpeaks from signal processing toolbox does not work.
There isn't a default findpeaks function in Matlab. Do you have your own function of that name defined and above the toolbox pa...

11 years ago | 0

| accepted

Answered
How to store a data by getting from for loop in matlab ?
If you know how many columns a is going to have and how many rows your final result will have (presumably you do if it is in a f...

11 years ago | 1

Answered
readjusting Y limits on subplots
'Yes' would be the answer to your question. I assume you are asking how to do it though? There are numerous ways. You co...

11 years ago | 0

Answered
Same button in several GUIs?
You can use the linkprop function to achieve this as well as callbacks if you want. hFig1 = figure; hText1 = uicontrol( ...

11 years ago | 0

Answered
How can i display a variable in the figure
Use a uicontrol with 'Style' 'text' and set the 'String' property to num2str( variableName ). doc uicontrol

11 years ago | 1

Answered
How to add m files in Matlab
Just add the folder it is in to your path and you can call it.

11 years ago | 0

Answered
Determining a winner in Tic Tac Toe using if statements
Your function doesn't give any validation of 'board' and what format it is supposed to be in. If this is just the background ...

11 years ago | 0

Answered
Slice plot of a 3D-data set with color code
I'm not familiar with the slice function, although it does look very useful for the work I do also, but I'm pretty sure that V s...

11 years ago | 1

Answered
Do I have to delete object created at runtime?
handle-derived objects will get garbage collected when no references exist to them any more. You can add your own 'delete' func...

11 years ago | 0

Answered
How to graph current Pointer Location
Something like the following would work, although this is an infinite loop. I haven't put any thought into how you would termin...

11 years ago | 0

| accepted

Answered
Index exceeds matrix dimensions error
A snippet from your code: out=y; for n=2:length(y) out(n,1)=y(n,1)-y(n-1,1); % left out(n,2)=y(n,2)-y(n-1,...

11 years ago | 0

Answered
error from 'and' statement
You should use && or & to AND together two statements, depending on whether or not the individual statements evaluate to scalars...

11 years ago | 0

| accepted

Answered
problem using regexprep and fprintf at the same time
regexprep doesn't work by reference, you have to assign the output back to your matrix

11 years ago | 0

| accepted

Answered
Remove Inf and NaN values in a Point Cloud in the fastest way
A = A( ~any( isnan( A ) | isinf( A ), 2 ),: )

11 years ago | 3

| accepted

Load more