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

concatenate column values in a vector

Treat v1 as the coefficients of a polynomial and evaluate that polynomial for x = 10. v1 = [ 1,0,1,0]; v2 = polyval(v1, 10)

concatenate column values in a vector

Treat v1 as the coefficients of a polynomial and evaluate that polynomial for x = 10. v1 = [ 1,0,1,0]; v2 = polyval(v1, 10)

ungefär 8 timmar ago | 1

Answered

errors in training deep learning network from matlab help system examples

Which release of Deep Learning Toolbox or Neural Network Toolbox are you using? How does this example appear (or does it appear...

errors in training deep learning network from matlab help system examples

Which release of Deep Learning Toolbox or Neural Network Toolbox are you using? How does this example appear (or does it appear...

ungefär 10 timmar ago | 0

Answered

Why pcbstack layers not aligned?

This might be related to Bug Report 2066356 as Hyma Harish Vallabhapurapu posted, but it could also be related to Bug Report 207...

Why pcbstack layers not aligned?

This might be related to Bug Report 2066356 as Hyma Harish Vallabhapurapu posted, but it could also be related to Bug Report 207...

ungefär 12 timmar ago | 0

| accepted

Answered

Using bsxfun for non-numeric data

For this specific example, you can now take advantage of implicit expansion and the string type. >> a = {'aa', 'bb', 'cc'}; >>...

Using bsxfun for non-numeric data

For this specific example, you can now take advantage of implicit expansion and the string type. >> a = {'aa', 'bb', 'cc'}; >>...

ungefär 12 timmar ago | 1

Answered

What to do if I want make parameters a vector in a ODE23?

There's an example on the ode23s documentation page (open this by typing doc ode23s in the MATLAB Command Window) for how to pas...

What to do if I want make parameters a vector in a ODE23?

There's an example on the ode23s documentation page (open this by typing doc ode23s in the MATLAB Command Window) for how to pas...

ungefär 23 timmar ago | 0

Answered

Undefined function 'updateSystem' for input arguments of type 'matlab.ui.Figure'.

Your filterPlot function returns the handle to a MATLAB figure. According to its documentation page updateSystem requires its fi...

Undefined function 'updateSystem' for input arguments of type 'matlab.ui.Figure'.

Your filterPlot function returns the handle to a MATLAB figure. According to its documentation page updateSystem requires its fi...

en dag ago | 0

| accepted

Answered

App Designer - unit of "position" property

The documentation states that the Units property is 'pixels'. What's the value shown for the ScreenPixelsPerInch property of the...

App Designer - unit of "position" property

The documentation states that the Units property is 'pixels'. What's the value shown for the ScreenPixelsPerInch property of the...

en dag ago | 0

Answered

matlab graph using excel data

Import the first set of data and generate the figure as you want it to appear. Once you have set up one figure, generate code th...

matlab graph using excel data

Import the first set of data and generate the figure as you want it to appear. Once you have set up one figure, generate code th...

en dag ago | 0

Answered

How can I select y data given a certain x value?

What you're seeing is the first example in the "Avoiding Common Problems with Floating-Point Arithmetic" section on this documen...

How can I select y data given a certain x value?

What you're seeing is the first example in the "Avoiding Common Problems with Floating-Point Arithmetic" section on this documen...

en dag ago | 0

Answered

Coding vectors in matlab

Nowhere in your code did you define a variable named v, so line 4 of the code you posted should (and will) throw an error. Did y...

Coding vectors in matlab

Nowhere in your code did you define a variable named v, so line 4 of the code you posted should (and will) throw an error. Did y...

2 dagar ago | 0

| accepted

Answered

Match datetime within 3 seconds from two tables of different sizes

Use withtol. Let's use a sample timetable generated using the example from the help: MeasurementTime = datetime({'2015-12-18 08...

Match datetime within 3 seconds from two tables of different sizes

Use withtol. Let's use a sample timetable generated using the example from the help: MeasurementTime = datetime({'2015-12-18 08...

2 dagar ago | 0

Answered

Problem using interp1 with a sharp change in the data

Try using ischange to detect these sharp changes in your data and interpolating using only data in the same "piece" of your curv...

Problem using interp1 with a sharp change in the data

Try using ischange to detect these sharp changes in your data and interpolating using only data in the same "piece" of your curv...

2 dagar ago | 0

Answered

2 nearest neighbors of each side of vector

Are there specific operations you want to perform on those neighbors? The moving statistics functions on this documentation page...

2 nearest neighbors of each side of vector

Are there specific operations you want to perform on those neighbors? The moving statistics functions on this documentation page...

3 dagar ago | 0

Answered

Working With Matlab Tables

Use parentheses to extract a smaller table from a larger table or to assign a smaller table into a larger one. Use curly braces...

Working With Matlab Tables

Use parentheses to extract a smaller table from a larger table or to assign a smaller table into a larger one. Use curly braces...

3 dagar ago | 0

Answered

Error when trying to modify a code (vectors)

You can directly use the elements of a vector through indexing. You don't need to extract them into separate variables. w = [1 ...

Error when trying to modify a code (vectors)

You can directly use the elements of a vector through indexing. You don't need to extract them into separate variables. w = [1 ...

4 dagar ago | 0

Answered

Reset the order of table columns

If you're using release R2018a or later you could use the movevars function.

Reset the order of table columns

If you're using release R2018a or later you could use the movevars function.

5 dagar ago | 0

Answered

missing toolboxes for function year

There is a year function in Financial Toolbox, but if you're working with date and time data I recommend storing your date and t...

missing toolboxes for function year

There is a year function in Financial Toolbox, but if you're working with date and time data I recommend storing your date and t...

5 dagar ago | 0

Answered

overly convoluted elseif condition

The approaches suggested by Bob Nbob and ME each work if the only values x can take in the range [1, 4] are integer values. If i...

overly convoluted elseif condition

The approaches suggested by Bob Nbob and ME each work if the only values x can take in the range [1, 4] are integer values. If i...

5 dagar ago | 0

Answered

How I do evaluate a function handle in other function handle

g_1=@(x,y) y_p*p_y(f,x,y) + p_x(f,x,y); g_2=@(x,y) y_p*p_y(g_1,x,y) + p_x(g_1,x,y); . . . g_n=@(x,y) y_p*p_y(g_(n-1),x...

How I do evaluate a function handle in other function handle

g_1=@(x,y) y_p*p_y(f,x,y) + p_x(f,x,y); g_2=@(x,y) y_p*p_y(g_1,x,y) + p_x(g_1,x,y); . . . g_n=@(x,y) y_p*p_y(g_(n-1),x...

6 dagar ago | 0

Answered

How to apply netting in Adjacency matrix

This sounds like it might be a homework assignment, so I'm only going to give a hint. The transpose operator .' may be of intere...

How to apply netting in Adjacency matrix

This sounds like it might be a homework assignment, so I'm only going to give a hint. The transpose operator .' may be of intere...

6 dagar ago | 0

| accepted

Answered

Error in constrained delaunay triangulation

In a delaunayTriangulation, the constraint input C does not contain the coordinates of points that define a constrained edge but...

Error in constrained delaunay triangulation

In a delaunayTriangulation, the constraint input C does not contain the coordinates of points that define a constrained edge but...

6 dagar ago | 0

Answered

Function definitions are not permitted in this context - Decoding_Toolbox

The ability to define local functions in scripts was introduced in release R2016b. Are you using an older release? If so you'll ...

Function definitions are not permitted in this context - Decoding_Toolbox

The ability to define local functions in scripts was introduced in release R2016b. Are you using an older release? If so you'll ...

6 dagar ago | 0

Answered

Matlab doesn't "Pause on Error" till Infinite recursion

Try setting a breakpoint on line 237 of wPLI_openfield. When MATLAB reaches that point, it will enter debug mode and the prompt ...

Matlab doesn't "Pause on Error" till Infinite recursion

Try setting a breakpoint on line 237 of wPLI_openfield. When MATLAB reaches that point, it will enter debug mode and the prompt ...

6 dagar ago | 1

| accepted

Answered

How to plot3D with inverse of matrix involved?

Look at the X and Y limits on your MATLAB plot, then look at the X and Y limits on the plot from Wolfram Alpha. MATLAB is givin...

How to plot3D with inverse of matrix involved?

Look at the X and Y limits on your MATLAB plot, then look at the X and Y limits on the plot from Wolfram Alpha. MATLAB is givin...

6 dagar ago | 0

Answered

quadratic fit tool wrong coefficients

Because your parameters are so large, I strongly encourate you to center and scale your data as shown in step 7c in the first ex...

quadratic fit tool wrong coefficients

Because your parameters are so large, I strongly encourate you to center and scale your data as shown in step 7c in the first ex...

7 dagar ago | 0

Answered

Can someone propose some code that will "connect the dots" using circular arcs?

Are you trying to do something like path planning for an autonomous vehicle, passing through waypoints along the way? If so cons...

Can someone propose some code that will "connect the dots" using circular arcs?

Are you trying to do something like path planning for an autonomous vehicle, passing through waypoints along the way? If so cons...

7 dagar ago | 0

Answered

defining a stuct variable

From the documentation for the struct function, when you have multiple fields being created in the same struct call: "If any of...

defining a stuct variable

From the documentation for the struct function, when you have multiple fields being created in the same struct call: "If any of...

7 dagar ago | 1

Answered

List of built-in data sets, please

What do you consider a data set? The census MAT-file in toolbox/matlab/demos (used here among other places) seems like it's o...

List of built-in data sets, please

What do you consider a data set? The census MAT-file in toolbox/matlab/demos (used here among other places) seems like it's o...

7 dagar ago | 0

| accepted

Answered

Name a few variables from a vector

There is a function named deal that looks like it does something like what you're asking, but that assigns each of its inputs to...

Name a few variables from a vector

There is a function named deal that looks like it does something like what you're asking, but that assigns each of its inputs to...

7 dagar ago | 1