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

Assign width of Bin Edges within rainflow matrix c = rainflow(x)

As written, the BinWidth property of the histogram object is determined by the BinEdges that you specified when you called histo...

Assign width of Bin Edges within rainflow matrix c = rainflow(x)

As written, the BinWidth property of the histogram object is determined by the BinEdges that you specified when you called histo...

9 hours ago | 0

Answered

Help with matrix manipulation

Since this seems like it might be a homework assignment, I'm simply going to point to one of the functions that may help you. Ta...

Help with matrix manipulation

Since this seems like it might be a homework assignment, I'm simply going to point to one of the functions that may help you. Ta...

11 hours ago | 0

Answered

why we use flag in matlab code and if we have sequence of integer then how the flag(integer)=1 ?

This (note the modified first line): intger=[2,6,8,9] flag(intger)=1 uses linear indexing to assign to elements 2, 6, 8, and ...

why we use flag in matlab code and if we have sequence of integer then how the flag(integer)=1 ?

This (note the modified first line): intger=[2,6,8,9] flag(intger)=1 uses linear indexing to assign to elements 2, 6, 8, and ...

11 hours ago | 1

Answered

How to find magnitude of an array of 17 vectors

If you're using release R2017b or later, use the vecnorm function to compute the norm of vectors stored in an array.

How to find magnitude of an array of 17 vectors

If you're using release R2017b or later, use the vecnorm function to compute the norm of vectors stored in an array.

1 day ago | 0

Answered

Bug: size(I, 1)*size(I, 2) returns size(I, 1) Instead of Product

This works for me. Let's make sure you haven't overloaded the size function. What does this command return? which -all size Al...

Bug: size(I, 1)*size(I, 2) returns size(I, 1) Instead of Product

This works for me. Let's make sure you haven't overloaded the size function. What does this command return? which -all size Al...

1 day ago | 0

Answered

Older MATLAB script not able to run in 2019 version

The output of fix(clock) is neither a string array nor a cell array each element of which is a string or a char vector. Therefor...

Older MATLAB script not able to run in 2019 version

The output of fix(clock) is neither a string array nor a cell array each element of which is a string or a char vector. Therefor...

1 day ago | 0

Answered

Condition for matlab if

PP=Wscat((g(i)-50:g(i)),i) ; If g(i) is exactly equal to 50, this will ask for the 0th element of Wscat. Arrays in MATLAB don't...

Condition for matlab if

PP=Wscat((g(i)-50:g(i)),i) ; If g(i) is exactly equal to 50, this will ask for the 0th element of Wscat. Arrays in MATLAB don't...

1 day ago | 0

Answered

How do I incrementize ode solver outputs after solution?

You could specify the tspan input to the ODE solver as 0:yourEndingTime. If you do this the solver will return the value of the ...

How do I incrementize ode solver outputs after solution?

You could specify the tspan input to the ODE solver as 0:yourEndingTime. If you do this the solver will return the value of the ...

2 days ago | 0

| accepted

Answered

Where can I find loggedGroundVehicleCircle.mat that is used in ErrorStateIMUGPSFuser?

I expect if you have Sensor Fusion and Tracking Toolbox and release R2019a or later (since that's the product that contains the ...

Where can I find loggedGroundVehicleCircle.mat that is used in ErrorStateIMUGPSFuser?

I expect if you have Sensor Fusion and Tracking Toolbox and release R2019a or later (since that's the product that contains the ...

2 days ago | 0

Answered

Random number with no repeats in set matrix

You have a requirement that no row may contain the same number twice. Can different rows in the same matrix contain the same num...

Random number with no repeats in set matrix

You have a requirement that no row may contain the same number twice. Can different rows in the same matrix contain the same num...

5 days ago | 1

Answered

How to use Matlab to analyze the sentence structure for text analysis?

I'm not certain if Text Analytics Toolbox does all of what you want but I recommend reviewing the documentation, specifically th...

How to use Matlab to analyze the sentence structure for text analysis?

I'm not certain if Text Analytics Toolbox does all of what you want but I recommend reviewing the documentation, specifically th...

5 days ago | 0

Answered

out of memory due to ploting

the problem is that the whole program runs out of memory after approx. 40 function calls, i.e. after approx 800 plots. Does thi...

out of memory due to ploting

the problem is that the whole program runs out of memory after approx. 40 function calls, i.e. after approx 800 plots. Does thi...

5 days ago | 0

Answered

Matlab grader integration in Canvas

Are you the administrator for your institution or an instructor? In either of those cases, see the appropriate section on this d...

Matlab grader integration in Canvas

Are you the administrator for your institution or an instructor? In either of those cases, see the appropriate section on this d...

5 days ago | 0

| accepted

Answered

programming a user response for a prompt

No, there's no way to have MATLAB select an entry in a system dialog or type into a search box. [Short of using Java's Robot cla...

programming a user response for a prompt

No, there's no way to have MATLAB select an entry in a system dialog or type into a search box. [Short of using Java's Robot cla...

5 days ago | 0

| accepted

Answered

how to set a one dimensional matrix flag ,which length is 65536 and each of its elements is zero.?

Use the zeros function.

how to set a one dimensional matrix flag ,which length is 65536 and each of its elements is zero.?

Use the zeros function.

5 days ago | 0

Answered

How to remove hundreds of columns from a matrix?

a(:, 2:16) = []; a(:, 20:25) = []; Are the second batch of columns you want to delete the new columns 20 through 25 (after t...

How to remove hundreds of columns from a matrix?

a(:, 2:16) = []; a(:, 20:25) = []; Are the second batch of columns you want to delete the new columns 20 through 25 (after t...

6 days ago | 4

Answered

matlab_crash_dump.13999

Because the topmost stack frame refers to a MEX-file: [ 0] 0x00007f150f1f5cce /home/xc/Downloads/Image Stitching with Bundled ...

matlab_crash_dump.13999

Because the topmost stack frame refers to a MEX-file: [ 0] 0x00007f150f1f5cce /home/xc/Downloads/Image Stitching with Bundled ...

6 days ago | 1

Answered

Why does it show that the Deep learning toolbox has been installed but it does not show in MATLAB app

According to the Release Notes the Deep Network Designer app was introduced in release R2018b, so I assume you're using an older...

Why does it show that the Deep learning toolbox has been installed but it does not show in MATLAB app

According to the Release Notes the Deep Network Designer app was introduced in release R2018b, so I assume you're using an older...

7 days ago | 0

Answered

bitset error for uint64

>> d = 38124631952277504; >> dec2bin(d) ans = '10000111011100100010011010011000101101010100000000000000' >> dec2bin(d+1)...

bitset error for uint64

>> d = 38124631952277504; >> dec2bin(d) ans = '10000111011100100010011010011000101101010100000000000000' >> dec2bin(d+1)...

7 days ago | 0

Answered

What represents the Y-axis in matlab's histogram?

It depends what type of 'Normalization' you've requested the histogram to use. The default is 'count' in which case the Y axis v...

What represents the Y-axis in matlab's histogram?

It depends what type of 'Normalization' you've requested the histogram to use. The default is 'count' in which case the Y axis v...

7 days ago | 1

Answered

Formatted string plus list of numbers using sprintf

If you're using a release that supports string convert your numeric vector into a string using string. Next use join to combine ...

Formatted string plus list of numbers using sprintf

If you're using a release that supports string convert your numeric vector into a string using string. Next use join to combine ...

7 days ago | 1

Answered

MaxFunEvals fmincon default option

Your code that creates the optimoptions object looks correct though if you're using release R2016a or later you may want to swit...

MaxFunEvals fmincon default option

Your code that creates the optimoptions object looks correct though if you're using release R2016a or later you may want to swit...

8 days ago | 0

| accepted

Answered

Histogram from masked area of grayscale picture

When performing indexing, there is a difference between a logical array and a double array containing only 0 and 1. The former w...

Histogram from masked area of grayscale picture

When performing indexing, there is a difference between a logical array and a double array containing only 0 and 1. The former w...

8 days ago | 0

| accepted

Answered

Error only in 2012 version

The ability to set property on Handle Graphics objects using the syntax hText.String was introduced in release R2014b as a part ...

Error only in 2012 version

The ability to set property on Handle Graphics objects using the syntax hText.String was introduced in release R2014b as a part ...

8 days ago | 0

Answered

Matlab is not recognizing sections %%

Look for the message indicator in your file in the Editor. See the first picture on this documentation page for the location of ...

Matlab is not recognizing sections %%

Look for the message indicator in your file in the Editor. See the first picture on this documentation page for the location of ...

8 days ago | 1

Answered

What is the toolbox for kmeans?

The kmeans function is in Statistics and Machine Learning Toolbox (previously the Statistics Toolbox) and has been since at leas...

What is the toolbox for kmeans?

The kmeans function is in Statistics and Machine Learning Toolbox (previously the Statistics Toolbox) and has been since at leas...

8 days ago | 0

| accepted

Answered

How to plot 3D line graph?

That looks like a waterfall plot. In the future, you can scan through the list of plots in the Plots tab of the toolstrip for o...

How to plot 3D line graph?

That looks like a waterfall plot. In the future, you can scan through the list of plots in the Plots tab of the toolstrip for o...

8 days ago | 0

| accepted

Answered

Display Complete output in Command Window

You can expand the size of the Command Window scroll buffer but I'm not sure you're going to be able to expand it enough to show...

Display Complete output in Command Window

You can expand the size of the Command Window scroll buffer but I'm not sure you're going to be able to expand it enough to show...

8 days ago | 0

Answered

No more activations are available for this user. You may need to deactivate a previously activated computer before you can activate this computer. See Solution 1-6379G9 for more details.

See this Answer from MathWorks Support Team. It describes how to deactivate a license even if you don't have the computer on whi...

No more activations are available for this user. You may need to deactivate a previously activated computer before you can activate this computer. See Solution 1-6379G9 for more details.

See this Answer from MathWorks Support Team. It describes how to deactivate a license even if you don't have the computer on whi...

9 days ago | 0