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

Why is logical array fasle?

Floating point arithmetic. While k1 and g are displayed the same they do not contain the same value down to the last bit.

Why is logical array fasle?

Floating point arithmetic. While k1 and g are displayed the same they do not contain the same value down to the last bit.

4 hours ago | 0

Answered

Computer crashed when calculating matrix (mixed with sparse and full) multiplication and summation

What release of MATLAB are you using? What operating system? I'm suspect you're going to say Linux. If I'm right, the OOM Kille...

Computer crashed when calculating matrix (mixed with sparse and full) multiplication and summation

What release of MATLAB are you using? What operating system? I'm suspect you're going to say Linux. If I'm right, the OOM Kille...

6 hours ago | 0

Answered

curve fitting tool plot is different from my plot

Show us the code you used to create your plot. Did you use the full double precision values of the coefficients stored in the f...

curve fitting tool plot is different from my plot

Show us the code you used to create your plot. Did you use the full double precision values of the coefficients stored in the f...

6 hours ago | 1

Answered

Curve fitting tool error with custom equation

Does your data contain a point with x = 0? If so the term c*(1/x) is going to give you Inf or NaN (depending on whether or not c...

Curve fitting tool error with custom equation

Does your data contain a point with x = 0? If so the term c*(1/x) is going to give you Inf or NaN (depending on whether or not c...

8 hours ago | 1

| accepted

Answered

What does vdp stand for? (Mathworks Example Simulation Model)

The vdp model is a simulation of the Van der Pol oscillator differential equation. It's a fairly simple model to create which is...

What does vdp stand for? (Mathworks Example Simulation Model)

The vdp model is a simulation of the Van der Pol oscillator differential equation. It's a fairly simple model to create which is...

8 hours ago | 0

| accepted

Answered

change of time in ode45

If the right hand side of your system of differential equations involves the solution at a previous time you don't have a system...

change of time in ode45

If the right hand side of your system of differential equations involves the solution at a previous time you don't have a system...

23 hours ago | 0

Answered

Is there a way to access array elements returned by a function directly

What you've written is not valid MATLAB syntax. You could do something close to what you want using a helper function. valueAt ...

Is there a way to access array elements returned by a function directly

What you've written is not valid MATLAB syntax. You could do something close to what you want using a helper function. valueAt ...

1 day ago | 0

Answered

Operations by matrix disease: 1.000.. - 1 is not equal to zero

Welcome to the world of floating-point arithmetic. Please try this little experiment. Find something to write with and somethin...

Operations by matrix disease: 1.000.. - 1 is not equal to zero

Welcome to the world of floating-point arithmetic. Please try this little experiment. Find something to write with and somethin...

1 day ago | 0

Answered

How can I not count some rows within X,Y columns that contain X>=3 to alter the bin counts of Y for a histogram?

If I understand your goal correctly I think you want to call histogram with the 'BinLimits' name-value pair.

How can I not count some rows within X,Y columns that contain X>=3 to alter the bin counts of Y for a histogram?

If I understand your goal correctly I think you want to call histogram with the 'BinLimits' name-value pair.

1 day ago | 0

Answered

How to solve A*x=0 in Matlab?

Use the null function, but remember the zero vector will also be a solution.

How to solve A*x=0 in Matlab?

Use the null function, but remember the zero vector will also be a solution.

2 days ago | 0

Answered

What is this assignment statement attempting to do?

This calls the meanX function with raw_data as input and returns two outputs. We can speculate as to what meanX does from its na...

What is this assignment statement attempting to do?

This calls the meanX function with raw_data as input and returns two outputs. We can speculate as to what meanX does from its na...

2 days ago | 0

Answered

Kindly any one help me regarding MATLAB GUI guide execution of my research work?

If you want to plot into an axes in your GUI, why are you explicitly creating a new figure? figure; hold Specify the handles o...

Kindly any one help me regarding MATLAB GUI guide execution of my research work?

If you want to plot into an axes in your GUI, why are you explicitly creating a new figure? figure; hold Specify the handles o...

2 days ago | 0

Answered

Proof eigenvector matches to a given matrix

What is the definition of the eigenvector of a matrix? Can you demonstrate that A and b satisfy that definition?

Proof eigenvector matches to a given matrix

What is the definition of the eigenvector of a matrix? Can you demonstrate that A and b satisfy that definition?

2 days ago | 0

Answered

What is the Best Way to Deal with an Empty Line Object?

x = 1:10; y = 1:10; i1 = x<=3; i2 = x > 100; i3 = x >= 7; hold on plot(x(i1),y(i1),'r','DisplayName', 'first'); plot(x(i...

What is the Best Way to Deal with an Empty Line Object?

x = 1:10; y = 1:10; i1 = x<=3; i2 = x > 100; i3 = x >= 7; hold on plot(x(i1),y(i1),'r','DisplayName', 'first'); plot(x(i...

3 days ago | 0

Answered

Unable to resolve the name phased.internal

See Bug Report 2470530. Apply the workaround given in that bug report or fix it by installing release R2021a Update 2 if possibl...

Unable to resolve the name phased.internal

See Bug Report 2470530. Apply the workaround given in that bug report or fix it by installing release R2021a Update 2 if possibl...

3 days ago | 2

| accepted

Answered

Using a loop to replace spaces for underscore

Use the replace function. before = 'Hello world' after = replace(before, ' ', ' cruel ')

Using a loop to replace spaces for underscore

Use the replace function. before = 'Hello world' after = replace(before, ' ', ' cruel ')

3 days ago | 0

Answered

How do I specify time increment in computation in for loop?

for loops can iterate over arbitrary vectors, not just 1:something. x = 1:0.5:5; for k = x fprintf("The value of k is %f....

How do I specify time increment in computation in for loop?

for loops can iterate over arbitrary vectors, not just 1:something. x = 1:0.5:5; for k = x fprintf("The value of k is %f....

3 days ago | 0

Answered

how to determine efficiency centrality of a node in Matlab

Build a graph or digraph representation of your network and call centrality on it. Depending on how you define "efficiency" you ...

how to determine efficiency centrality of a node in Matlab

Build a graph or digraph representation of your network and call centrality on it. Depending on how you define "efficiency" you ...

3 days ago | 0

Answered

Strange behaviour of a function handel

According to Google Bill Gates has a net worth of 126.5 billion USD. If you saw him on the street and handed him a $20 bill, wou...

Strange behaviour of a function handel

According to Google Bill Gates has a net worth of 126.5 billion USD. If you saw him on the street and handed him a $20 bill, wou...

3 days ago | 0

| accepted

Answered

How to solve "Maximum recursion limit of 500 reached." error

You've created a script file clc.m that tries to call the built-in clc function on its first line. The clc.m you've created take...

How to solve "Maximum recursion limit of 500 reached." error

You've created a script file clc.m that tries to call the built-in clc function on its first line. The clc.m you've created take...

3 days ago | 1

Answered

How to use the random variables Xt (outcomes of a dice roll) to define another random variable T5 ?

I wouldn't use rand here. I'd use randi to directly generate the values of the fair die roll. [If you were later going to simula...

How to use the random variables Xt (outcomes of a dice roll) to define another random variable T5 ?

I wouldn't use rand here. I'd use randi to directly generate the values of the fair die roll. [If you were later going to simula...

3 days ago | 0

Answered

How can I write this complex equation in matlab? in order to find i1 & i2

See this documentation page.

How can I write this complex equation in matlab? in order to find i1 & i2

See this documentation page.

4 days ago | 1

| accepted

Answered

Could anyone please help me with an example of LSTM network matlab code.

One of the "Related Topics" listed at the end of the documentation page to which I linked in my comment on the question is "Time...

Could anyone please help me with an example of LSTM network matlab code.

One of the "Related Topics" listed at the end of the documentation page to which I linked in my comment on the question is "Time...

4 days ago | 0

Answered

limit of a function is giving another limit

Let's look at your function. syms y z_0 = 2; z_1 = 3; lambda = 4; fun2 = 0.5.*(1./(y.^2)).*besselj(0,(2.*pi./lambda).*(1./y...

limit of a function is giving another limit

Let's look at your function. syms y z_0 = 2; z_1 = 3; lambda = 4; fun2 = 0.5.*(1./(y.^2)).*besselj(0,(2.*pi./lambda).*(1./y...

5 days ago | 0

Answered

Date stamp on plot

plot(1:10, 1:10) title("This plot was created at " + string(datetime('now')))

Date stamp on plot

plot(1:10, 1:10) title("This plot was created at " + string(datetime('now')))

5 days ago | 0

Answered

Cubic spline interpolation in interp1 doesn't remove NaN

The fillmissing function offers several methods to use in filling in the missing data (NaN in the case of your numeric data.) On...

Cubic spline interpolation in interp1 doesn't remove NaN

The fillmissing function offers several methods to use in filling in the missing data (NaN in the case of your numeric data.) On...

5 days ago | 0

Answered

How to remove null matrices from a multidemensional array?

Use the capability of the any function to accept a vector of dimensions over which to operate. z = zeros(3); r = @() rand(3); ...

How to remove null matrices from a multidemensional array?

Use the capability of the any function to accept a vector of dimensions over which to operate. z = zeros(3); r = @() rand(3); ...

5 days ago | 0

Answered

"Highlight" a vertical gridline on a figure

There are a couple possible ways to do this. Off the top of my head the one I'd probably use is to set the YAxisLocation propert...

"Highlight" a vertical gridline on a figure

There are a couple possible ways to do this. Off the top of my head the one I'd probably use is to set the YAxisLocation propert...

6 days ago | 0

Answered

I want to create a square wave shows in the Picture

Looking at the Plots tab of the Toolstrip, the thumbnail that looks closest to the picture that you posted is the stairs functio...

I want to create a square wave shows in the Picture

Looking at the Plots tab of the Toolstrip, the thumbnail that looks closest to the picture that you posted is the stairs functio...

6 days ago | 0

Answered

How to combine matrices with different size but preserve elements with same value?

None of A, B, or C have four columns like you stated you had. You didn't indicate how you generated C from A and B, but one way...

How to combine matrices with different size but preserve elements with same value?

None of A, B, or C have four columns like you stated you had. You didn't indicate how you generated C from A and B, but one way...

6 days ago | 0