I'm a seasoned biomedical researcher and software developer with expert knowledge of computational biology, parallel computing, statistical analysis, and user interface design. I've been programming for nearly 30 years, having cut my teeth on BASIC and Logo when I was 10.

You can often find me on Stack Overflow answering MATLAB questions: http://stackoverflow.com/users/52738/gnovice

Answered

Error using FreezePanes in Excel

You could try setting the property with a logical value, since it expects a Boolean type: Excel.ActiveWindow.FreezePanes = true...

Error using FreezePanes in Excel

You could try setting the property with a logical value, since it expects a Boolean type: Excel.ActiveWindow.FreezePanes = true...

3 months ago | 0

Answered

How do I skip items in a legend?

To exclude items from a legend, you can specify the objects that you want to include as the first input argument to the “legend”...

How do I skip items in a legend?

To exclude items from a legend, you can specify the objects that you want to include as the first input argument to the “legend”...

7 months ago | 55

| accepted

Answered

What matlab easter eggs do you know?

As <http://blogs.mathworks.com/steve/2006/10/17/the-story-behind-the-matlab-default-image/ Steve discussed in one of his blog po...

What matlab easter eggs do you know?

As <http://blogs.mathworks.com/steve/2006/10/17/the-story-behind-the-matlab-default-image/ Steve discussed in one of his blog po...

1 year ago | 18

Answered

I am trying to use the function imfill() but it does not run and the following message is displayed: Undefined function or variable 'eml_assert_all_constant'. I can't find such fuction in MATLAB documentation.

If you use the function <https://www.mathworks.com/help/matlab/ref/which.html |which|> like so: which iptcheckconn -all ...

I am trying to use the function imfill() but it does not run and the following message is displayed: Undefined function or variable 'eml_assert_all_constant'. I can't find such fuction in MATLAB documentation.

If you use the function <https://www.mathworks.com/help/matlab/ref/which.html |which|> like so: which iptcheckconn -all ...

1 year ago | 3

Submitted

dirPlus

dirPlus will recursively collect a list of files/folders from a folder tree.

2 years ago | 20 downloads |

Submitted

MouseManager

The MouseManager class provides an interface for managing mouse interactions with figure objects.

2 years ago | 1 download |

Answered

Why is subsref and subscripted reference not equivalent

Not sure if this is a complete answer, but it appears that invoking subsref directly requires a stricter definition of the outpu...

Why is subsref and subscripted reference not equivalent

Not sure if this is a complete answer, but it appears that invoking subsref directly requires a stricter definition of the outpu...

2 years ago | 1

Solved

Is this triangle right-angled?

Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

4 years ago

Solved

Area of an equilateral triangle

Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

4 years ago

Solved

Area of an Isoceles Triangle

An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

4 years ago

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

4 years ago

Solved

Length of the hypotenuse

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

4 years ago

Solved

Is this triangle right-angled?

Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

4 years ago

Solved

Swap the first and last columns

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

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

4 years ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

4 years ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

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

4 years ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

4 years ago

Solved

Determine if input is odd

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

4 years ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

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

4 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:...

4 years ago

Solved

Solve the Sudoku Row

*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

4 years ago

Answered

Hump-day challenger - Recursion

My first attempt: function index = find_index(M,V) switch numel(M) case 0 index = []; case 1 ...

Hump-day challenger - Recursion

My first attempt: function index = find_index(M,V) switch numel(M) case 0 index = []; case 1 ...

8 years ago | 1

| accepted

Answered

How can i remove the sky from this image. (About background removal question)

I'm unclear how <http://www.mathworks.com/help/techdoc/ref/zeros.html ZEROS> is to be used for this problem, but you could do it...

How can i remove the sky from this image. (About background removal question)

I'm unclear how <http://www.mathworks.com/help/techdoc/ref/zeros.html ZEROS> is to be used for this problem, but you could do it...

8 years ago | 3

| accepted

Answered

How do I generate a given Matrix in one command?

I can't believe no one suggested dilation: A = imdilate(eye(5),ones(2)); Or convolution: A = sign(conv2(eye(5),ones(2),'s...

How do I generate a given Matrix in one command?

I can't believe no one suggested dilation: A = imdilate(eye(5),ones(2)); Or convolution: A = sign(conv2(eye(5),ones(2),'s...

8 years ago | 3

Answered

Slice thickness information lost when using dicomwrite()

I think your problem may be the missing capitalization of the "t" in the name |SliceThickness|. Notice that all the fields in th...

Slice thickness information lost when using dicomwrite()

I think your problem may be the missing capitalization of the "t" in the name |SliceThickness|. Notice that all the fields in th...

8 years ago | 0

| accepted