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

How to create a cell array with the content of a component of a structure?

It is not working because in your for-loop, yourcell is never indexed by the loop variable i, so the loop code has no idea where...

How to create a cell array with the content of a component of a structure?

It is not working because in your for-loop, yourcell is never indexed by the loop variable i, so the loop code has no idea where...

38 minutes ago | 0

Answered

Identify the minimum number of rows in a matrix meeting a condition

This solution uses the Optimization Toolbox, although I am still only half certain what row-selection rule you are looking for ...

Identify the minimum number of rows in a matrix meeting a condition

This solution uses the Optimization Toolbox, although I am still only half certain what row-selection rule you are looking for ...

10 hours ago | 1

| accepted

Answered

Find max/min level of all intersections of a given contour curve with another set of contour curves

A method more along the lines of what you outlined in your initial post, is to put the x,y pairs of the i-th level set of A into...

Find max/min level of all intersections of a given contour curve with another set of contour curves

A method more along the lines of what you outlined in your initial post, is to put the x,y pairs of the i-th level set of A into...

16 hours ago | 0

Answered

Find max/min level of all intersections of a given contour curve with another set of contour curves

The problem you describe cannot be well-defined in terms of discrete contour samples, because there are infinite choices of func...

Find max/min level of all intersections of a given contour curve with another set of contour curves

The problem you describe cannot be well-defined in terms of discrete contour samples, because there are infinite choices of func...

18 hours ago | 0

Answered

fmincon error in intial value

You must do something that not only gets rid of complex-valued results, but also respects fmincon's requirement that your object...

fmincon error in intial value

You must do something that not only gets rid of complex-valued results, but also respects fmincon's requirement that your object...

18 hours ago | 0

Answered

Creating 3x201 matrix from set of numbers

I=(0:0.1e-10:20e-10).' *[1,1,1];

Creating 3x201 matrix from set of numbers

I=(0:0.1e-10:20e-10).' *[1,1,1];

22 hours ago | 1

Answered

how can i get the intersection of two step curves?

I have never heard the terminology "step curve", but see if one of these FEX submissions is useful to you, https://www.mathwork...

how can i get the intersection of two step curves?

I have never heard the terminology "step curve", but see if one of these FEX submissions is useful to you, https://www.mathwork...

1 day ago | 0

Answered

Integral boundaries for a triangular plane

Here is an example from the documentation for integral2 of an integral over a triangular region: https://www.mathworks.com/help...

Integral boundaries for a triangular plane

Here is an example from the documentation for integral2 of an integral over a triangular region: https://www.mathworks.com/help...

2 days ago | 0

Answered

Why does Multistart give a output same as the initial guess value?

I am sure the initial guess value (X0) do not give a global minimum. What have you done to verify that? Have you tested optimi...

Why does Multistart give a output same as the initial guess value?

I am sure the initial guess value (X0) do not give a global minimum. What have you done to verify that? Have you tested optimi...

2 days ago | 0

Answered

Export_fig - Ghostscript program not found

It probably doesn't matter unless you are going to try to export .eps or .epsc files. If you are, you should indeed install Ghos...

Export_fig - Ghostscript program not found

It probably doesn't matter unless you are going to try to export .eps or .epsc files. If you are, you should indeed install Ghos...

2 days ago | 0

| accepted

Answered

How to transform given XY coordinates using 'lwm' tform?

A forward version of the lwm transform is not provided because it is not guaranteed to be a 1-1 transformation, but perhaps it w...

How to transform given XY coordinates using 'lwm' tform?

A forward version of the lwm transform is not provided because it is not guaranteed to be a 1-1 transformation, but perhaps it w...

2 days ago | 0

| accepted

Answered

linear equation with summation

q=A/D should already account for the summation. Your equation can be written just by replacing the summation with simple matrix ...

linear equation with summation

q=A/D should already account for the summation. Your equation can be written just by replacing the summation with simple matrix ...

2 days ago | 0

| accepted

Answered

Working with for loop

I_values=1:4:len; final_delay=nan(1,numel(I_values)); %PRE-ALLOCATE!!!!!! for k=1:numel(I_values) i_value=I_...

Working with for loop

I_values=1:4:len; final_delay=nan(1,numel(I_values)); %PRE-ALLOCATE!!!!!! for k=1:numel(I_values) i_value=I_...

2 days ago | 0

| accepted

Answered

Perform processing over each row of table starting from first non-zero element in that row

Your question implies that all elements of the table are numeric., e.g., T = 5×3 table Var1 Var2 Var3 ...

Perform processing over each row of table starting from first non-zero element in that row

Your question implies that all elements of the table are numeric., e.g., T = 5×3 table Var1 Var2 Var3 ...

3 days ago | 0

Answered

Returning values from Blockproc

You could use mat2tiles https://www.mathworks.com/matlabcentral/fileexchange/35085-mat2tiles-divide-array-into-equal-sized-sub-...

Returning values from Blockproc

You could use mat2tiles https://www.mathworks.com/matlabcentral/fileexchange/35085-mat2tiles-divide-array-into-equal-sized-sub-...

3 days ago | 0

Answered

Column space of a matrix

You can use this FEX submission, https://www.mathworks.com/matlabcentral/fileexchange/77437-extract-linearly-independent-subset...

Column space of a matrix

You can use this FEX submission, https://www.mathworks.com/matlabcentral/fileexchange/77437-extract-linearly-independent-subset...

3 days ago | 0

Answered

How to label sorted variables

Maybe what you want: >> labels=string({"A","B","C"}); >> x = [1,1,3; 2,2,1; 3,3,2]; >> labels(x) ans = ...

How to label sorted variables

Maybe what you want: >> labels=string({"A","B","C"}); >> x = [1,1,3; 2,2,1; 3,3,2]; >> labels(x) ans = ...

3 days ago | 0

Answered

FSOLVE requires all values returned by user functions to be of data type double

The result I get from this is, xc = 0.1000 0.1500 0.2000 0.2500 0.3000 0.3500 0.4000 ...

FSOLVE requires all values returned by user functions to be of data type double

The result I get from this is, xc = 0.1000 0.1500 0.2000 0.2500 0.3000 0.3500 0.4000 ...

3 days ago | 0

| accepted

Answered

Matrix 2-norm Condition number

sadly this isn't the first tine that the equal function fails with me and don't know the reason. The isequal() function didn't ...

Matrix 2-norm Condition number

sadly this isn't the first tine that the equal function fails with me and don't know the reason. The isequal() function didn't ...

3 days ago | 0

| accepted

Answered

Adding two linear inequality constraints in Optimization toolbox

But the optimization algorithm should still be able to handle it, right? Can it be accomodated in Aineq and bineq? One way you ...

Adding two linear inequality constraints in Optimization toolbox

But the optimization algorithm should still be able to handle it, right? Can it be accomodated in Aineq and bineq? One way you ...

6 days ago | 0

Answered

Interpolate values to the nearest 0.25 and create indices for these values

vals=linspace(0,8,32+1); rp1(:)=interp1(vals,vals, rp1(:),'nearest')

Interpolate values to the nearest 0.25 and create indices for these values

vals=linspace(0,8,32+1); rp1(:)=interp1(vals,vals, rp1(:),'nearest')

7 days ago | 0

| accepted

Answered

Operator '-' is not supported for operands of type 'cell'.

Check the contents of ATtable{1,3} and ATtable{1,5}. I bet they're not numbers.

Operator '-' is not supported for operands of type 'cell'.

Check the contents of ATtable{1,3} and ATtable{1,5}. I bet they're not numbers.

7 days ago | 0

| accepted

Answered

How to draw a graph for function with constraints?

fimplicit(@(x,y) x.^2 + 4*x.*y +5*y.^2 - 10,'r'); hold on; fcontour(@(x,y) 3*x+4*y) ; hold off

How to draw a graph for function with constraints?

fimplicit(@(x,y) x.^2 + 4*x.*y +5*y.^2 - 10,'r'); hold on; fcontour(@(x,y) 3*x+4*y) ; hold off

7 days ago | 0

| accepted

Answered

Unable to perform assignment because the size of the left side is 98-by-50 and the size of the right side is 98-by-32.

Make the right hand side and the left hand side the same size.

Unable to perform assignment because the size of the left side is 98-by-50 and the size of the right side is 98-by-32.

Make the right hand side and the left hand side the same size.

7 days ago | 0

Answered

Repeatedly interpolating from scattered to regular grid with varying sample values

You can change the Values property of the scatteredInterpolant object. That can eliminate significant object re-building time, a...

Repeatedly interpolating from scattered to regular grid with varying sample values

You can change the Values property of the scatteredInterpolant object. That can eliminate significant object re-building time, a...

7 days ago | 1

| accepted

Answered

Constraint function in optimization toolbox

As far as I can see from your code, the mass flow constraint is linear in para. You would use the linear inequality constraint a...

Constraint function in optimization toolbox

As far as I can see from your code, the mass flow constraint is linear in para. You would use the linear inequality constraint a...

8 days ago | 0

| accepted

Answered

Creating optimization constraint with loop is too slow

The problem-based framework is not built for speed. It's built to make setting up small problems easy. So, it's already question...

Creating optimization constraint with loop is too slow

The problem-based framework is not built for speed. It's built to make setting up small problems easy. So, it's already question...

8 days ago | 0

| accepted

Answered

Does anyone know how to use the matlab to calculate the minimu distance between a point outside oval and the oval surface？

You can use trustregprob from the File Exchange https://www.mathworks.com/matlabcentral/fileexchange/53191-quadratic-minimizati...

Does anyone know how to use the matlab to calculate the minimu distance between a point outside oval and the oval surface？

You can use trustregprob from the File Exchange https://www.mathworks.com/matlabcentral/fileexchange/53191-quadratic-minimizati...

9 days ago | 0

| accepted

Answered

coefficient determination of two variables

lsqcurvefit would be one choice, https://www.mathworks.com/help/optim/ug/lsqcurvefit.html Note that your equation can be reorg...

coefficient determination of two variables

lsqcurvefit would be one choice, https://www.mathworks.com/help/optim/ug/lsqcurvefit.html Note that your equation can be reorg...

9 days ago | 1

| accepted