5.357 total contributions since 2009

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

Using MATLAB on multiple devices with one account

I would say the best/cheapest option is to install a student license on your home computer and connect to that computer (by Remo...

Using MATLAB on multiple devices with one account

I would say the best/cheapest option is to install a student license on your home computer and connect to that computer (by Remo...

alrededor de 4 horas ago | 0

Answered

non overlapping random circles

Perhaps one of these FEX contributions would be helpful.

non overlapping random circles

Perhaps one of these FEX contributions would be helpful.

alrededor de 9 horas ago | 0

Answered

Undefined function or variable 'drawellipse'

drawellipse wasn't introduced until R2018b.

Undefined function or variable 'drawellipse'

drawellipse wasn't introduced until R2018b.

alrededor de 10 horas ago | 1

| accepted

Answered

Find clusters with specific value in 3D matrix

S=regionprops(yourImage<0.05,'Area','PixelIdxList'); S=S([S.Volume]>=30); result=zeros(size(yourImage)); for i=1:numel(S)...

Find clusters with specific value in 3D matrix

S=regionprops(yourImage<0.05,'Area','PixelIdxList'); S=S([S.Volume]>=30); result=zeros(size(yourImage)); for i=1:numel(S)...

alrededor de 11 horas ago | 0

Answered

Product of elements in an array

For example, >> x=[3 5 7 11]; >> prod(nchoosek(x,3),2) ans = 105 165 231 385

Product of elements in an array

For example, >> x=[3 5 7 11]; >> prod(nchoosek(x,3),2) ans = 105 165 231 385

alrededor de 12 horas ago | 0

Answered

How to find the coordinates of the white square ?

Some simple morphological operations are all you need. A=imbinarize((imread('image.jpeg'))); A=bwareafilt( imopen(A,strel...

How to find the coordinates of the white square ?

Some simple morphological operations are all you need. A=imbinarize((imread('image.jpeg'))); A=bwareafilt( imopen(A,strel...

alrededor de 13 horas ago | 0

Answered

Calculating dot product of 2 3 dimensional row vectors

I think this is what you want: x=input('Enter the 1st pair of 3 vector elements in [square brackets]: '); if (numel(x)~=3); ...

Calculating dot product of 2 3 dimensional row vectors

I think this is what you want: x=input('Enter the 1st pair of 3 vector elements in [square brackets]: '); if (numel(x)~=3); ...

alrededor de 14 horas ago | 0

| accepted

Answered

issorted alternative for optimization toolbox

You can do, prob.Constraints.sorted = ( A(2:end) <= A(1:end-1) );

issorted alternative for optimization toolbox

You can do, prob.Constraints.sorted = ( A(2:end) <= A(1:end-1) );

alrededor de 14 horas ago | 0

Answered

The "fslove function" got different answer on two computers

Have you checked whether both results are valid solutions to the equations? If a continuum of solutions exists, it is quite conc...

The "fslove function" got different answer on two computers

Have you checked whether both results are valid solutions to the equations? If a continuum of solutions exists, it is quite conc...

alrededor de 17 horas ago | 0

Answered

fft definition in matlab doc puzzling

Your second definition only makes sense if you define the indexing in Y(k) to be modulo-n. Otherwise, it is not clear what it me...

fft definition in matlab doc puzzling

Your second definition only makes sense if you define the indexing in Y(k) to be modulo-n. Otherwise, it is not clear what it me...

1 día ago | 0

Answered

How to fix this error in interpolation?

interp1 is complaining that y3 has repeated elements. They are required to be unique and monotonic.

How to fix this error in interpolation?

interp1 is complaining that y3 has repeated elements. They are required to be unique and monotonic.

1 día ago | 0

Answered

How to sum multiple matrice in loop ?

Is this what you want? result = squeeze(sum(T3,3)); If not please clarify what the dimensions of the final result should be.

How to sum multiple matrice in loop ?

Is this what you want? result = squeeze(sum(T3,3)); If not please clarify what the dimensions of the final result should be.

1 día ago | 0

Answered

Imprecision problem: pinv(H) is not equal to pinv(H'*H)*H'

Seems to me the obvious solution is not to push gamma to infinity. That removes the regularization whose purpose is precisely to...

Imprecision problem: pinv(H) is not equal to pinv(H'*H)*H'

Seems to me the obvious solution is not to push gamma to infinity. That removes the regularization whose purpose is precisely to...

1 día ago | 0

Answered

Using other solvers for models generated by optimproblem

You can use prob2struct to help convert a problem-based description of the linear constraints to the matrices required by other ...

Using other solvers for models generated by optimproblem

You can use prob2struct to help convert a problem-based description of the linear constraints to the matrices required by other ...

2 días ago | 2

| accepted

Answered

Plotting shapes based on equations and weights.

For 2D and 3D functions, you can use fimplict and fimplicit3, e.g., fimplicit(@(x,y) w0+w1*x+w2*y)

Plotting shapes based on equations and weights.

For 2D and 3D functions, you can use fimplict and fimplicit3, e.g., fimplicit(@(x,y) w0+w1*x+w2*y)

2 días ago | 0

Answered

What is the equivalent of the function 'wait' after using 'imellipse' for the new function 'drawcircle' (version R2018b)?

Here's a (ch)easy workaround using the waitfordoubleclick.m file attached drawcircle; waitfordoubleclick You may have to adjus...

What is the equivalent of the function 'wait' after using 'imellipse' for the new function 'drawcircle' (version R2018b)?

Here's a (ch)easy workaround using the waitfordoubleclick.m file attached drawcircle; waitfordoubleclick You may have to adjus...

3 días ago | 0

| accepted

Answered

Multiple regression with multiple variations

e=ones(size(x1)); abcdef = y/[e;x2;x3;1./x1;x2./x1;x3./x1] abcdef = 6.3301 0.0113 -0.0117 88.7676 -0.8784...

Multiple regression with multiple variations

e=ones(size(x1)); abcdef = y/[e;x2;x3;1./x1;x2./x1;x3./x1] abcdef = 6.3301 0.0113 -0.0117 88.7676 -0.8784...

4 días ago | 0

| accepted

Answered

assigning a variable to an output of a function at a certain time

t=1; yone=yourFunction(t);

assigning a variable to an output of a function at a certain time

t=1; yone=yourFunction(t);

4 días ago | 0

Answered

Linear and Non-Linear constraint Optimization

Yes, c and ceq can be vectors (or matrices, or arrays of any dimension...).

Linear and Non-Linear constraint Optimization

Yes, c and ceq can be vectors (or matrices, or arrays of any dimension...).

4 días ago | 0

| accepted

Answered

Specifying some but not all Nonlinear Constraint Gradients through Fmincon

I agree, it would be nice if the Optimization Toolbox would expose its finite differencing code as a separate function, so that ...

Specifying some but not all Nonlinear Constraint Gradients through Fmincon

I agree, it would be nice if the Optimization Toolbox would expose its finite differencing code as a separate function, so that ...

5 días ago | 0

| accepted

Answered

innerjoin invalid parameter name

It appears that you are attempting to do the following: Akeys={'DateAnnounced','TargetName','AcquirorName'}; Bkeys={'DateAnnou...

innerjoin invalid parameter name

It appears that you are attempting to do the following: Akeys={'DateAnnounced','TargetName','AcquirorName'}; Bkeys={'DateAnnou...

5 días ago | 0

| accepted

Answered

How to Show 1/4 in 1/2^2?

You can also create symbolic numbers sym(1/3) 1/3 but be mindful that all calculations you do with such numbers will also giv...

How to Show 1/4 in 1/2^2?

You can also create symbolic numbers sym(1/3) 1/3 but be mindful that all calculations you do with such numbers will also giv...

6 días ago | 1

Answered

GPU Recommendation for Parallel Computing

Well, the one general thing I can say is that if you convert all of the variables data1...data5 variables to gpuArray objects, t...

GPU Recommendation for Parallel Computing

Well, the one general thing I can say is that if you convert all of the variables data1...data5 variables to gpuArray objects, t...

6 días ago | 0

| accepted

Answered

Questions about Multi Objective Linear Programming (MOLP) with 'fminimax'

I have concerns that if I change the values on the myfun (e.g., 7104057.18 , 1334616299.17) in terms of changing decimal, the 'X...

Questions about Multi Objective Linear Programming (MOLP) with 'fminimax'

I have concerns that if I change the values on the myfun (e.g., 7104057.18 , 1334616299.17) in terms of changing decimal, the 'X...

6 días ago | 0

Answered

Assigning new matrix values from another matrix's rows

I would just convert the bits into a single integer index, index=triplets*[4;2;1]; and then perform lookup into an appropriate...

Assigning new matrix values from another matrix's rows

I would just convert the bits into a single integer index, index=triplets*[4;2;1]; and then perform lookup into an appropriate...

7 días ago | 0

| accepted

Answered

error for 'fmincon' for global optimization

It's a case sensitivity issue. Instead of 'LB' and 'UB', pass in 'lb' and 'ub'.

error for 'fmincon' for global optimization

It's a case sensitivity issue. Instead of 'LB' and 'UB', pass in 'lb' and 'ub'.

7 días ago | 0

| accepted

Answered

How to state the compass direction between two coordinates

You would do angle=atan2d(d-b,c-a); and then, based on the numeric value of angle, assign a compass direction:

How to state the compass direction between two coordinates

You would do angle=atan2d(d-b,c-a); and then, based on the numeric value of angle, assign a compass direction:

7 días ago | 0

| accepted

Answered

Points Translation and finding correct normal direction

Compute the vector V from the centroid to each of your points and correct the orientation of the gradient as follows gradient ...

Points Translation and finding correct normal direction

Compute the vector V from the centroid to each of your points and correct the orientation of the gradient as follows gradient ...

7 días ago | 0