Aussie living in the US. Engineering with MATLAB.

Some Interests:

-3D Volume Processing (CT, mri)

-Finite Element Analysis (human body simulation)

-Geometry Analysis (human body morphomics)

Professional Interests: Image processing, Finite Element Analysis, Human Body Biomechanics

Solved

Find the nearest prime number

Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

21 hours ago

Solved

I Plead the Fifth

Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

21 hours ago

Solved

Spot the First Occurrence of 5

This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...

21 hours ago

Solved

5 Prime Numbers

Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...

21 hours ago

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.

Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

22 hours ago

Solved

Is it really a 5?

A number containing at least one five will be passed to your function, which must return true or false depending upon whether th...

1 day ago

Solved

How to subtract?

* Imagine you need to subtract a few numbers using MATLAB. * You will not be using eval for this task. * Given two ASCII strin...

1 day ago

Responded

Re: How to open DICOM images different from demo images?

Hi Pablo, The error message gives it away: Perhaps the file isn't in your current directory but is in a folder somewhere? Th...

1 month ago | 390 views

Solved

When Was That Goal Scored?

We want to find out when the goals were scored in a particular soccer game. For each game, we are given a "Goal Event Data" XML ...

9 months ago

Solved

Circle area using pi

Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

1 year ago

Answered

FaceAlpha of bar3 plot smaller than 1 ruins rest of the plot

Hi Sven, We don't have your data (and we don't even know which of your variables are matrices, which are vectors etc.), so we...

FaceAlpha of bar3 plot smaller than 1 ruins rest of the plot

Hi Sven, We don't have your data (and we don't even know which of your variables are matrices, which are vectors etc.), so we...

1 year ago | 0

Answered

how to make cropping for image ?

Hi Eliz, try this: % Read your original image Img1 = imread('http://www.mathworks.com/matlabcentral/answers/uploaded_fil...

how to make cropping for image ?

Hi Eliz, try this: % Read your original image Img1 = imread('http://www.mathworks.com/matlabcentral/answers/uploaded_fil...

1 year ago | 1

Answered

how to compare cell arrays of different lengths?

We can start with your input a = int64(1:3)'; out = num2cell(a); b = int64(1:4)'; out2 =num2cell(b); We will pr...

how to compare cell arrays of different lengths?

We can start with your input a = int64(1:3)'; out = num2cell(a); b = int64(1:4)'; out2 =num2cell(b); We will pr...

1 year ago | 1

| accepted

Answered

how to save all value of centoid of many object from one image ?

The centroid is not a scalar value. It has two components (X coordinate, Y coordinate), so you cannot assign it to a scalar vari...

how to save all value of centoid of many object from one image ?

The centroid is not a scalar value. It has two components (X coordinate, Y coordinate), so you cannot assign it to a scalar vari...

1 year ago | 0

Submitted

inpolyhedron - are points inside a triangulated volume?

Test if 3d points are inside a mesh. Or, voxelise a mask from a surface. Mesh can be non-convex too!

2 years ago | 64 downloads |

Question

Indexing via 3d array changed behaviour 2015a -> 2015b?

Hi all, just got 2015b, here's a strange one where indexing via a multidimensional array has a differently shaped output to prev...

2 years ago | 1 answer | 2

Submitted

upsert(conn,tableName,fieldNames,keyFields,data, varargin)

If a data row already exists, UPDATE that row! If it doesn't exist, INSERT that row!

2 years ago | 0 downloads |

Answered

Convert image into Patches of size 64*64 and get each patch

Hi Tahir, try this: I = imread('rice.png'); imSz = size(I); patchSz = [64 64]; xIdxs = [1:patchSz(2):imSz(2) imSz(...

Convert image into Patches of size 64*64 and get each patch

Hi Tahir, try this: I = imread('rice.png'); imSz = size(I); patchSz = [64 64]; xIdxs = [1:patchSz(2):imSz(2) imSz(...

2 years ago | 1

| accepted

Submitted

mpoly2mask - convert multiple polygons to a mask

Converts an object with multiple boundary contours to a logical mask

2 years ago | 12 downloads |

Answered

Overlapping region of a single ROI is excluded by the mask

Hi Alessandro, When you say that you _"want to draw a closed ring shape with a single line"_, we might step-by-step reinterpr...

Overlapping region of a single ROI is excluded by the mask

Hi Alessandro, When you say that you _"want to draw a closed ring shape with a single line"_, we might step-by-step reinterpr...

2 years ago | 0

Answered

Find strings that contain multiple substrings at the same time

Hi Sven, Here's how I would do it. It uses a call to *regexp* (you could also use *strsplit*) and one *cellfun*. The good thi...

Find strings that contain multiple substrings at the same time

Hi Sven, Here's how I would do it. It uses a call to *regexp* (you could also use *strsplit*) and one *cellfun*. The good thi...

2 years ago | 0

Answered

How can I replace a loop with arrayfun - problems with strrep

Hi Sven (congrats on the name), Here's a pretty direct way to do what you're trying to do. It uses regexp once and cellfun on...

How can I replace a loop with arrayfun - problems with strrep

Hi Sven (congrats on the name), Here's a pretty direct way to do what you're trying to do. It uses regexp once and cellfun on...

2 years ago | 0

| accepted

Submitted

stlwrite(filename, varargin)

Export a variety of inputs (patch, surface) to an STL triangular mesh

2 years ago | 185 downloads |

Question

Fit to just half a parabola

Hi there, I have some simple XY data, and I can fit a quadratic to it as follows: X = [25.4 30.48 35.56 40.64 45.72 5...

2 years ago | 0 answers | 0

Submitted

deploypcode(source_dir, target_dir, varargin)

DEPLOYPCODE recursively searches a directory for .m files, creating encrypted .p files with .m help

3 years ago | 2 downloads |

Answered

how can i remove object bigger than x pixel

Hi Lukasz, Here's an example that removes all objects greater than 1000 pixels in area. You probably have your own *BW* image...

how can i remove object bigger than x pixel

Hi Lukasz, Here's an example that removes all objects greater than 1000 pixels in area. You probably have your own *BW* image...

3 years ago | 1

| accepted

Question

getframe difference in 2014b.... bug?

The following code run in 2014a and 2014b produces remarkably different results. I think it's a bug. figure('Position',[100...

3 years ago | 1 answer | 1

Submitted

octree - partitioning 3D points into spatial subvolumes

OcTree recursively splits a large set of points into smaller subvolumes. A QuadTree but in 3D.

3 years ago | 48 downloads |

Submitted

splitFV - split a mesh

Splits a 2D or 3D mesh defined by faces and vertices into separately connected mesh pieces.

3 years ago | 13 downloads |

Answered

Question regarding matrix index

Hi jana, Try this: X = [1 2 3 4 5; 3 inf 5 7 inf; 5 6 7 inf inf; 2 3 4 9 1] [val, rowNum] = ...

Question regarding matrix index

Hi jana, Try this: X = [1 2 3 4 5; 3 inf 5 7 inf; 5 6 7 inf inf; 2 3 4 9 1] [val, rowNum] = ...

3 years ago | 0