I joined The MathWorks in the Technical Support department during the summer of 2001 and transferred into the Quality Engineering department in March of 2004. I now work qualifying the core MATLAB numerical functions (PLUS, MINUS, LU, FFT, ODE45, etc.)

Professional Interests: mathematics, MATLAB

For assistance with MATLAB question please post to MATLAB Answers or contact Technical Support using the Contact Us link in the upper-right corner of the page instead of contacting me directly.

Answered

Non-integer values inside "Randi" function

If you want uniformly distributed random numbers that are not integers, randi is not the right tool for the job. See the example...

Non-integer values inside "Randi" function

If you want uniformly distributed random numbers that are not integers, randi is not the right tool for the job. See the example...

7 hours ago | 1

Answered

Is it possible to write argmin in the equation for MATLAB live script ?

What specifically do you mean when you say argmin? Do you mean the location of the minimum element in a vector? See the second ...

Is it possible to write argmin in the equation for MATLAB live script ?

What specifically do you mean when you say argmin? Do you mean the location of the minimum element in a vector? See the second ...

11 hours ago | 0

Answered

confusing regarding two cases of multiplication in MATLAB?

See this documentation page for a discussion of the difference between array operations and matrix operations, including example...

confusing regarding two cases of multiplication in MATLAB?

See this documentation page for a discussion of the difference between array operations and matrix operations, including example...

16 hours ago | 0

Answered

Unsure what I did wrong

Don't try to raise exp(1) to the power of x. Just use exp on the array x directly. x = 1:5; y = exp(x);

Unsure what I did wrong

Don't try to raise exp(1) to the power of x. Just use exp on the array x directly. x = 1:5; y = exp(x);

1 day ago | 2

Answered

About Newton's method

As you've written your code F isn't a function. It's a numeric array. That means F(u(n-1)) is an attempt to get whatever is in e...

About Newton's method

As you've written your code F isn't a function. It's a numeric array. That means F(u(n-1)) is an attempt to get whatever is in e...

1 day ago | 0

Answered

Will MATLAB provide Bert word embedding support?

In general we don't discuss future plans. If you believe we should include this word embedding model in our products, please sub...

Will MATLAB provide Bert word embedding support?

In general we don't discuss future plans. If you believe we should include this word embedding model in our products, please sub...

3 days ago | 0

Answered

using command to operate cftool

I don't believe there is a programmatic API for cftool. You probably want to use the programmatic workflows described on this do...

using command to operate cftool

I don't believe there is a programmatic API for cftool. You probably want to use the programmatic workflows described on this do...

3 days ago | 0

Answered

Getting handles of lines and deleting last 2 line plots

I wouldn't assume that the first two elements of the array returned by findobj were the last two lines created. I don't think th...

Getting handles of lines and deleting last 2 line plots

I wouldn't assume that the first two elements of the array returned by findobj were the last two lines created. I don't think th...

3 days ago | 0

Answered

wind speed versus time ....mathematical expression

If you want to perform regression, see this page discussing linear regression and this one discussing nonlinear regression. You ...

wind speed versus time ....mathematical expression

If you want to perform regression, see this page discussing linear regression and this one discussing nonlinear regression. You ...

3 days ago | 0

Answered

Number output when using syms

Call vpa or double on the symbolic expression.

Number output when using syms

Call vpa or double on the symbolic expression.

3 days ago | 0

| accepted

Answered

scalar vs matrix vs vector vs array??

Please see the Description sections on the documentation pages for the isscalar, isvector, and ismatrix functions for a definiti...

scalar vs matrix vs vector vs array??

Please see the Description sections on the documentation pages for the isscalar, isvector, and ismatrix functions for a definiti...

3 days ago | 0

Answered

Please help to fix this error "First input argument must be a function handle".

for m = 1:N zm(m) = (m - 0.5)*dz - h; r(m) = @(z) sqrt(a^2 + (zm(m)-z).^2); K(m) = @(r)(exp(-1i*k*r(m)))/(r(m)) ...

Please help to fix this error "First input argument must be a function handle".

for m = 1:N zm(m) = (m - 0.5)*dz - h; r(m) = @(z) sqrt(a^2 + (zm(m)-z).^2); K(m) = @(r)(exp(-1i*k*r(m)))/(r(m)) ...

3 days ago | 0

| accepted

Answered

dec2base working differently on a matrix than on individual values

That's not the first element in M. That's the first element that the Command Window scroll buffer contains. Previous rows in the...

dec2base working differently on a matrix than on individual values

That's not the first element in M. That's the first element that the Command Window scroll buffer contains. Previous rows in the...

3 days ago | 2

Answered

vlookup type matrix creating

Since this sounds like it might be a homework question, I'm only going to point you in the direction of a useful function: ismem...

vlookup type matrix creating

Since this sounds like it might be a homework question, I'm only going to point you in the direction of a useful function: ismem...

4 days ago | 1

| accepted

Answered

the meaning of basic matlab words

The word "handle" has at least two different (somewhat related) meanings in MATLAB. A handle object is an object where differ...

the meaning of basic matlab words

The word "handle" has at least two different (somewhat related) meanings in MATLAB. A handle object is an object where differ...

4 days ago | 0

| accepted

Answered

How can I draw non planar graph in 3D dimension

Call plot and specify the 'Layout' to be one of the 3-D layouts, 'force3' or 'subspace3'. Alternately you can specify 'XData', '...

How can I draw non planar graph in 3D dimension

Call plot and specify the 'Layout' to be one of the 3-D layouts, 'force3' or 'subspace3'. Alternately you can specify 'XData', '...

4 days ago | 0

Answered

Insatlling Matlab 7.04 (R14SP2) on Windows 10

Running release R14SP2 (which was released in March 2005) on Windows 10 (released in July 2015, over ten years later) is not a s...

Insatlling Matlab 7.04 (R14SP2) on Windows 10

Running release R14SP2 (which was released in March 2005) on Windows 10 (released in July 2015, over ten years later) is not a s...

4 days ago | 0

Answered

Need to add an admin to license number: 719588

To add / remove / change administrators on your license please follow the instructions on this MATLAB Answers post. As the last ...

Need to add an admin to license number: 719588

To add / remove / change administrators on your license please follow the instructions on this MATLAB Answers post. As the last ...

5 days ago | 0

Answered

Go through the table with a loop and change values

The standardizeMissing function can accept arrays of various types, including table arrays and timetable arrays. If you only wan...

Go through the table with a loop and change values

The standardizeMissing function can accept arrays of various types, including table arrays and timetable arrays. If you only wan...

5 days ago | 1

Answered

How can I convert douvle value to int or Integer?

Do you need to convert to an integer data type or is converting to an integer value (if it's not one already) sufficient? If ...

How can I convert douvle value to int or Integer?

Do you need to convert to an integer data type or is converting to an integer value (if it's not one already) sufficient? If ...

5 days ago | 0

Answered

Creating Phase Plane graphs/portraits

Use odeset to create options to pass into one of the ODE solvers in MATLAB. In your odeset call set the 'OutputFcn' option to @o...

Creating Phase Plane graphs/portraits

Use odeset to create options to pass into one of the ODE solvers in MATLAB. In your odeset call set the 'OutputFcn' option to @o...

5 days ago | 0

Answered

Matlab Solving Muller Method

f0=@(m0) (g*m0/c)*(1-e^(-c*t/m0))-v; Nowhere have you defined e. If you wanted to compute the exponential, instead just call th...

Matlab Solving Muller Method

f0=@(m0) (g*m0/c)*(1-e^(-c*t/m0))-v; Nowhere have you defined e. If you wanted to compute the exponential, instead just call th...

5 days ago | 0

Answered

checking dataType instead typecast at property or argument validation

If you specify both a property validator function and a class name, I believe MATLAB will cast the property name you try to set ...

checking dataType instead typecast at property or argument validation

If you specify both a property validator function and a class name, I believe MATLAB will cast the property name you try to set ...

6 days ago | 0

Answered

shortest path algorithm based on a recursive function

If you have a (small, simple) test case where the answer your code gives differs from the answer you expected it to give, have y...

shortest path algorithm based on a recursive function

If you have a (small, simple) test case where the answer your code gives differs from the answer you expected it to give, have y...

6 days ago | 0

Answered

else if inside for loop.

for i=1:numel(u) Bxcf(i)= (((1.2566e-6 * I)/(4* pi * dxc(i))) * (1.8/(sqrt((dxc(i))^2+((1.8^2)/4))))); for i=1:n...

else if inside for loop.

for i=1:numel(u) Bxcf(i)= (((1.2566e-6 * I)/(4* pi * dxc(i))) * (1.8/(sqrt((dxc(i))^2+((1.8^2)/4))))); for i=1:n...

6 days ago | 0

Answered

Long term support of ActiveX

See this documentation page for more information. If you have use cases that would not be satisfied by the recommendations on th...

Long term support of ActiveX

See this documentation page for more information. If you have use cases that would not be satisfied by the recommendations on th...

6 days ago | 0

Answered

Calculating the area of a plot, e.g convhull

Consider using an alphaShape instead of a convex hull since your shape isn't convex.

Calculating the area of a plot, e.g convhull

Consider using an alphaShape instead of a convex hull since your shape isn't convex.

7 days ago | 0

Answered

Assign Value to a Specific Position

Take a look at the two-output form of the max function. That should provide you enough information to complete that task.

Assign Value to a Specific Position

Take a look at the two-output form of the max function. That should provide you enough information to complete that task.

7 days ago | 0

Answered

finding nonzero elements in matrix

Use implicit expansion. A = [0 1 1; 0 0 1; 1 1 1]; R = (1:size(A, 1)).'; B = A.*R

finding nonzero elements in matrix

Use implicit expansion. A = [0 1 1; 0 0 1; 1 1 1]; R = (1:size(A, 1)).'; B = A.*R

7 days ago | 1

Answered

support for Variable fonts

You can customize the fonts MATLAB uses by following the instructions on this documentation page.

support for Variable fonts

You can customize the fonts MATLAB uses by following the instructions on this documentation page.

10 days ago | 1

| accepted