Community Profile

Matthew Whitaker


144 total contributions since 2007

http://www.linkedin.com/in/mlwhitaker
Professional Interests: Image Processing, Medical Imaging

Contact

Matthew Whitaker's Badges

Contributions in
View by

Answered
HOW TO COMPARE TWO ARRAYS ELEMENTS IN MATLAB
Try: AA = [ 0.1, 0.2, 0.3, 0.2, 0.1, -0.1, -0.2, -0.3]; aa = [0.2, 0.3, 0.2, 0.1, -0.1, -0.2, -0.3, NaN]; bb = [NaN, ...

4 years ago | 1

Solved


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

5 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

5 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

5 years ago

Solved


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

5 years ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

5 years ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

5 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

5 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

5 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

5 years ago

Submitted


ButtonGroup Objects
Container objects to manage radio or toggle buttons with functionality of the GUI Layout Toolbox

5 years ago | 6 downloads |

Thumbnail

Answered
Using .NET FileSystemWatcher to listen for new files
Jonathon, Here is an example of how to do it. Note you need to listen on the changed event and not the created event function...

5 years ago | 4

| accepted

Responded


Re: WindowButtonDownFcn not working
Hi Rob I think this bug report applies to your situation: http://www.mathworks.com/support/bugreports/517438 Hope this helps Ma...

5 years ago | 3140 views

Answered
Stand alone executable command prompt
On your mcc command you need to add the -e flag. Note you need to use a Microsoft compiler for this to work (like Visual Studio ...

6 years ago | 0

Responded


Re: convert isdir logical to num

6 years ago | 2465 views

Responded


Re: uicontrol: How to make dynamically buttons
Hi Francesco, Doing this would not be that difficult but could you describe the scenario why one would want to have a button cor...

6 years ago | 3595 views

Posted


recording MCR errors
Hi David, You want to look at the following mcc compiler switches -e and -R This will suppress the dos window and put everythi...

6 years ago | 2794 views

Responded


Re: stem without scaling
Hi Peter, You want to do something like: y = [1 10 50 100 500 1000]; stem(y) x = [ 10 11 20 31 100 150]; %note your x ticks need...

6 years ago | 1773 views

Responded


Re: data interpolation?
Hi Vincent, I think you want to do something like: %velocity data v = [0.2947 -2.3731 0.0061 0.9863 -1.5305 -0.1739 -0.2785 -0....

6 years ago | 1140 views

Responded


Re: adjusting GUI to fit screens of varying resolution
Hi Paul, Something to check: If you are making your GUi's with GUIDE you need to be aware that the default units for the figures...

6 years ago | 7659 views

Responded


Re: buttondownfcn on an image
Hi Vicki, In 'disp("image button down")') make sure the quotes around mage button down are two single quotes on each end not a d...

6 years ago | 8168 views

Responded


Re: how to set the range of colorbar
Hi James, Set the CLIM on the axes. e.g. a= [2.3 1.7 3.3; h=pcolor(a); set(h,'LineStyle','none'); axis image colorbar % the c...

6 years ago | 10863 views

Responded


Re: buttondownfcn on an image
So a few questions: 1) is your ButtonDownFcn set on your image or the underlying axes? 2) Did you turn off the Hittest on the im...

6 years ago | 8168 views

Responded


Re: Lag between uicontrol and updating image
One minor suggestion would be to make the slider's 'Enable' property 'inactive' instead of off. That way it won't change appeara...

6 years ago | 1874 views

Responded


Re: exist
a.x = 1; b = 1; exist('a','var') exist('a','var') && isstruct(a) exist('b','var') && isstruct(b) %exist but is not a struct exis...

6 years ago | 3166 views

Responded


Re: Patch color changes when moved near axe limits
Ok so is there a good reason for the patch to extend beyond the edges of the axes or can the axes limits be extended to encompas...

6 years ago | 1085 views

Responded


Re: HSV formula
A goos place to start would be: http://en.wikipedia.org/wiki/HSL_and_HSV

6 years ago | 1469 views

Responded


Re: Patch color changes when moved near axe limits
One thing to try would be to turn the 'Clipping' property of the patch to 'off'. Hope this helps Matt W

6 years ago | 1085 views

Responded


Re: GUI rendering problem
In GUIDE the default units when adding uicontrols is characters which may render differently depending on the system. If you che...

6 years ago | 1376 views

Responded


Re: How to save an analyze/dicom image, while maintaining actual pixel intensities?
One thing that comes to mind if you are using the Image processing toolbox dicomwrite is that if your data is in double format a...

6 years ago | 2380 views

Load more