Professional Interests: medical image processing, optimization algorithms

PLEASE NOTE: I do not read email sent through my author page. Please post questions about FEX submissions in their respective Comments section.

Answered

feval distorted in ga after using nonlinearconstr

The main thing I see that looks out of place is that is the role of SSP_restored_1st15day. If it is a variable, I cannot see wh...

feval distorted in ga after using nonlinearconstr

The main thing I see that looks out of place is that is the role of SSP_restored_1st15day. If it is a variable, I cannot see wh...

1 dag ago | 0

Answered

How can I plot ln(1-x)/x using colon operator?

x = linspace(-10^(-15),10^(-15),300); f = log(1-x)./x; plot(x,f)

How can I plot ln(1-x)/x using colon operator?

x = linspace(-10^(-15),10^(-15),300); f = log(1-x)./x; plot(x,f)

2 dagen ago | 0

| accepted

Answered

How to plot a graph that I already have in on paper

Yuo can use this, https://www.mathworks.com/matlabcentral/fileexchange/7173-grabit to extract the points on the curve, which y...

How to plot a graph that I already have in on paper

Yuo can use this, https://www.mathworks.com/matlabcentral/fileexchange/7173-grabit to extract the points on the curve, which y...

2 dagen ago | 0

Answered

Check if nullspace is contained in another + finding intersection of 2 nullspaces.

Hints: (1) Consider [null(A), null(B)] (2) Consider [A;B]

Check if nullspace is contained in another + finding intersection of 2 nullspaces.

Hints: (1) Consider [null(A), null(B)] (2) Consider [A;B]

2 dagen ago | 0

Answered

Linear programming code not showing the solution

As long as your feasible set is bounded, you can use this FEX submission instead, https://www.mathworks.com/matlabcentral/filee...

Linear programming code not showing the solution

As long as your feasible set is bounded, you can use this FEX submission instead, https://www.mathworks.com/matlabcentral/filee...

2 dagen ago | 0

Answered

exp(-b/x) fit, inf problem when fitting

When x goes to zero, y should go to zero as well since anything power negative infinity is zero. Only if b>=0. g = fittype('ex...

exp(-b/x) fit, inf problem when fitting

When x goes to zero, y should go to zero as well since anything power negative infinity is zero. Only if b>=0. g = fittype('ex...

4 dagen ago | 0

Answered

Sum subarrays of a Matrix.

Using sepblockfun https://www.mathworks.com/matlabcentral/fileexchange/48089-separable-block-wise-operations out=sepblockfun(A...

Sum subarrays of a Matrix.

Using sepblockfun https://www.mathworks.com/matlabcentral/fileexchange/48089-separable-block-wise-operations out=sepblockfun(A...

4 dagen ago | 0

Question

Recover former state of Matlab Editor

I had quite a few files open in the Matlab Editor, but then inadvertently closed the editor window. Is there any way to re-open ...

5 dagen ago | 1 answer | 0

Answered

How to calculate reveral summations

T=triu(ones(600)); I=(1:600).' + (1:600); ur=u(:).'; sigma= (T.*ur(I))*ur(1:600).';

How to calculate reveral summations

T=triu(ones(600)); I=(1:600).' + (1:600); ur=u(:).'; sigma= (T.*ur(I))*ur(1:600).';

5 dagen ago | 0

Answered

How do I minimize a particular error function with lsqnonlin?

I don't see much that I think can be improved, except perhaps to formulate it so that your errors are differentiable - the lsqno...

How do I minimize a particular error function with lsqnonlin?

I don't see much that I think can be improved, except perhaps to formulate it so that your errors are differentiable - the lsqno...

5 dagen ago | 0

| accepted

Answered

Get "@" back in a table header (R2017b) when saving

For example, T=table(1,'VariableNames',"name_domain") T.Properties.VariableNames = replace(T.Properties.VariableNames,'_','@...

Get "@" back in a table header (R2017b) when saving

For example, T=table(1,'VariableNames',"name_domain") T.Properties.VariableNames = replace(T.Properties.VariableNames,'_','@...

5 dagen ago | 0

Answered

How to find splitapply for multiple values

[G, idOcc,idAge] =findgroups(x.occupation,x.Age)

How to find splitapply for multiple values

[G, idOcc,idAge] =findgroups(x.occupation,x.Age)

5 dagen ago | 0

| accepted

Answered

Calculation the mean of a portion of a matrix

mean( z(2:end-1,2:end-1) ,'all')

Calculation the mean of a portion of a matrix

mean( z(2:end-1,2:end-1) ,'all')

5 dagen ago | 0

| accepted

Answered

Rank one decomposition of a positive semi-definite matrix with inequality trace constraints

Is there any ways I could do the rank one decomposition of matrix X, such that The obvious answer seems to be to test each k to...

Rank one decomposition of a positive semi-definite matrix with inequality trace constraints

Is there any ways I could do the rank one decomposition of matrix X, such that The obvious answer seems to be to test each k to...

6 dagen ago | 0

Answered

create matrix of integers with specified sum in column and row

You can try to formulate it as an integer program. M=optimvar('M',[4,4],'type','integer'); Constraints.columns=sum(M,1)<=col...

create matrix of integers with specified sum in column and row

You can try to formulate it as an integer program. M=optimvar('M',[4,4],'type','integer'); Constraints.columns=sum(M,1)<=col...

6 dagen ago | 0

Answered

Finding Upper and Lower Indexes

A = [1;2;3;4;5;8]; B = [3.5;6;2]; c=interp1(A,A,B,'previous'); C=[c(:),c(:)+1]

Finding Upper and Lower Indexes

A = [1;2;3;4;5;8]; B = [3.5;6;2]; c=interp1(A,A,B,'previous'); C=[c(:),c(:)+1]

8 dagen ago | 1

Answered

Row-normalizing large sparse matrix

The attempt you've posted will only work if vals_W is the same size as sum_vals, which can only occur when there is exactly one ...

Row-normalizing large sparse matrix

The attempt you've posted will only work if vals_W is the same size as sum_vals, which can only occur when there is exactly one ...

9 dagen ago | 0

| accepted

Submitted

Object-oriented tools for fitting conics and quadrics

A tool set for fitting various conics and quadric surfaces, e.g., ellipses, cylinders, spheres, planes, and lines.

10 dagen ago | 5 downloads |

Answered

Problem with fmincon fval

As Walter suggests, the multiple fvals per iteration are part of finite difference computations needed to evaluate the cost func...

Problem with fmincon fval

As Walter suggests, the multiple fvals per iteration are part of finite difference computations needed to evaluate the cost func...

10 dagen ago | 0

Answered

Finding a row with a certain value and the next nth rows after that

Here's an approach that uses logical indexing only: A=[ 0.9058 0.2785 0.9706 0.4218 0.0357 0.1270 0.5469 ...

Finding a row with a certain value and the next nth rows after that

Here's an approach that uses logical indexing only: A=[ 0.9058 0.2785 0.9706 0.4218 0.0357 0.1270 0.5469 ...

10 dagen ago | 1

| accepted

Question

Is there a way to interactively move a plot legend in a Live Editor figure?

In a normal figure window, I can reposition a plot legend by clicking and dragging. Is it possible to do something similar in a ...

11 dagen ago | 1 answer | 1

Answered

Best way to move multiple objects with a preallocated matrix of coordinates?

I see movement when I do this, xl=xlim; for b=1:1:nStarts*nCarsPerStart for h=nStarts+1:nStarts:nStarts*(t+1) ...

Best way to move multiple objects with a preallocated matrix of coordinates?

I see movement when I do this, xl=xlim; for b=1:1:nStarts*nCarsPerStart for h=nStarts+1:nStarts:nStarts*(t+1) ...

11 dagen ago | 0

| accepted

Answered

averaging images and subtracting one image from the other

For example, setA=rand(256,256,10); setB=rand(256,256,10); imageA=mean(setA,3); imageB=mean(setB,3); result = imageB-im...

averaging images and subtracting one image from the other

For example, setA=rand(256,256,10); setB=rand(256,256,10); imageA=mean(setA,3); imageB=mean(setB,3); result = imageB-im...

11 dagen ago | 0

| accepted

Answered

Trying to do a curve fitting but having trouble getting it to work.

Do you happen to know why I keep getting the "local minimum possible" Because lsqcurvefit thinks it succeeded in finding a sol...

Trying to do a curve fitting but having trouble getting it to work.

Do you happen to know why I keep getting the "local minimum possible" Because lsqcurvefit thinks it succeeded in finding a sol...

11 dagen ago | 0

Answered

Need help creating a variable with different names or a method for saving a variable to different names.

for k=1:K S(k).A(i,j) = readline(s); S(k).B(i,j) = readline(s); S(k).C(i,j) = readline(s); S(k).D(i,j) = readline(s); e...

Need help creating a variable with different names or a method for saving a variable to different names.

for k=1:K S(k).A(i,j) = readline(s); S(k).B(i,j) = readline(s); S(k).C(i,j) = readline(s); S(k).D(i,j) = readline(s); e...

11 dagen ago | 0

| accepted

Answered

Index in position 1 exceeds array bounds.

Notice! x=rand(5,500); x=x(1:256,1:256);

Index in position 1 exceeds array bounds.

Notice! x=rand(5,500); x=x(1:256,1:256);

11 dagen ago | 0

Answered

I want to combine two plots, one is cone and one is semi-circle

Use hold().

I want to combine two plots, one is cone and one is semi-circle

Use hold().

11 dagen ago | 1

Answered

How to find number of elements using a for loop

for i=1:numel(A), A(i)>2, end

How to find number of elements using a for loop

for i=1:numel(A), A(i)>2, end

11 dagen ago | 0