# Kevin Moerman

### National University of Ireland, Trinity College Dublin, and MIT

Lecturer Biomedical Engineering http://orcid.org/0000-0003-3768-4269

**Statistics**

RANK**1,123**

of 273,392

REPUTATION**49**

CONTRIBUTIONS

**5** Questions

**22** Answers

ANSWER ACCEPTANCE **
60.0%
**

VOTES RECEIVED**15**

RANK**1,098** of 18,457

REPUTATION**1,618**

AVERAGE RATING**4.80**

CONTRIBUTIONS**9** Files

DOWNLOADS **66**

ALL TIME DOWNLOADS**13756**

RANK

of 122,833

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Matlab 2021b crashed when running with sudo / root

I have this in version R2022a and Ubuntu 20.04. Any solutions yet? @Sivani Pentapati

11 months ago | 0

Patch moving with keyboard

Check this function out: http://www.mathworks.com/matlabcentral/fileexchange/50663-view-contol-widget

7 years ago | 0

Visualizing 1D data with Color.

There are many different ways of doing this. It depends on how you want to visualize the data. E.g. as bars, as dots, as a 1xn s...

7 years ago | 1

| accepted

I want to change the background value of figure to white.

Perhaps this answers your question. Find where the figure is created in the code and replace by something like: hf = figure...

7 years ago | 0

Question

Test step sizes and parameter scaling for LSQNONLIN (and the Levenberg Marquardt algorithm)

I have a multi-parameter and multi-objective optimisation problem for which I am trying to use LSQNONLIN. 1) On its initial ...

8 years ago | 1 answer | 0

### 1

answerQuestion

How to speed up the creation of large fields in XML files?

I'm trying to create XML files that contain large fields e.g. of the form: <Geometry> <Nodes> <node id="1">-1.0,-0.5,...

8 years ago | 1 answer | 0

### 1

answerHello there.. I want to detect a blurred frame in a video sequence.. can anybody help me out

A blurred image is equivalent to an image that is convolved with for instance a Gaussian kernel. This means that low frequencies...

8 years ago | 1

Question

How to create OR where is, the file "funclist.html" when creating custom documentation?

I am creating a toolbox and have recently successfully used the info <http://www.mathworks.nl/help/matlab/matlab_prog/display-cu...

8 years ago | 0 answers | 0

### 0

answersCreating a 3D radiation pattern

Perhaps rephrase your question and clearly say what it is you want to visualise. I think the visualisation problem is probably i...

10 years ago | 0

edge & non-edge pixels

If img is a logic say where ones define edge pixels and zeros define non-edge pixels then you are correct nnz(img): coun...

10 years ago | 1

| accepted

Levels in an image

Not sure if I understand your question correctly but in some image formats the image data has a fixed amount of possible intensi...

10 years ago | 0

Matlab to CAD Program

A simple way of doing it would be to first create a triangulated representation of your surface (e.g. based on Delaunay tessella...

10 years ago | 0

| accepted

surface disappears when zdata is set to 0

This example is probably equivalent to what you want: [X,Y,Z]=peaks(25); figure; surf(X,Y,zeros(size(Z)),Z) ; view(3); axis...

10 years ago | 0

Repeat element of a vector n times without loop.

There is several others ways of doing it which in some cases are more efficient. Have a look at what the size of your vector is ...

10 years ago | 2

Question

For LSQNONLIN is it okay if the number of elements in the vector-valued function varies per iteration?

For LSQNONLIN is it okay if the number of elements in the vector-valued function varies per iteration? I have a vector-valued...

11 years ago | 1 answer | 1

### 1

answerextract 3D surface from 3D volume data

Could you rephrase/clarify your question? It sounds like you have 3D image data and that you are only interested in a certain su...

11 years ago | 0

Question

Multiple outputs from FMINSEARCH function

For FMINSEARCH in combination with a function MYFUN one could use: [X,fval,exitflag,output]= fminsearch(@(X) myfun(X),X,opt...

11 years ago | 4 answers | 2

### 4

answersHow to rotate a line?

Correct, and instead of E(3) just use a_rad straight away. Also if you find this too complex you could use POL2CART instead (mak...

11 years ago | 4

Iso-Surface

Now properly formatted. function G=tesgroup(F) % function G=tesgroup(F) % -------------------------------------------...

11 years ago | 0

Iso-Surface

Use this function and have a look at the example to group the patch objects defined by the faces and vertices. I will also post ...

11 years ago | 0

Mesh generation for an arbitrary 3D closed surface

I’m not aware of a specific command for this. By mesh and grid do you mean just a mesh of evenly spaced points (e.g. as produced...

11 years ago | 0

How to rotate a line?

This should answer your question. This code does what you want and shows you what happens depending on your choice of centre poi...

11 years ago | 2

| accepted

Delete number in two matrices with same indices/position

If A and B are the save size then instead of the "find" function (which produces linear or subscript indices) use logic indexing...

11 years ago | 0

Finding center of a line

If your edge/line is the only segmented object (only the line consists of ones) in your image then if M is your binary image (co...

11 years ago | 0

| accepted

how to set nan to areas outsid a polygon on the image

Then its more complicated. When you say vertices and faces do you mean a tesselation? e.g. a Delaunay tesselation? Of the head v...

11 years ago | 1

Finding center of a line

If its a straight line then you could simply take the mean of your line coordinates (or even centre of gravity of the image obje...

11 years ago | 0

how to set nan to areas outsid a polygon on the image

If its a 2D image you can use the inpolygon command. Your polygon (which needs to form the boundary of your patch data) is d...

11 years ago | 0