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

How to transpose a table of double values without the doubles getting converted to integers?

That tells me your table contains both int64 and double data. When you combine the table values into one array with table2array ...

How to transpose a table of double values without the doubles getting converted to integers?

That tells me your table contains both int64 and double data. When you combine the table values into one array with table2array ...

ungefär 20 timmar ago | 0

Answered

Plot function with time step

A slightly different way to create that vector would be to compute integer multiples of the spacing. First I'll make some sample...

Plot function with time step

A slightly different way to create that vector would be to compute integer multiples of the spacing. First I'll make some sample...

en dag ago | 2

Answered

How to dramatically speed-up the function plot

The key information is in the Description section on the plot documentation page. "plot(X,Y) creates a 2-D line plot of the dat...

How to dramatically speed-up the function plot

The key information is in the Description section on the plot documentation page. "plot(X,Y) creates a 2-D line plot of the dat...

2 dagar ago | 0

| accepted

Answered

Does infinite norm function use singular value ?

As stated on the documentation page for the norm function and on Wikipedia, the infinity norm of a matrix is the maximum of its ...

Does infinite norm function use singular value ?

As stated on the documentation page for the norm function and on Wikipedia, the infinity norm of a matrix is the maximum of its ...

2 dagar ago | 0

Answered

Hello guys i need help

Don't try to call fzero with a function handle to the function containing the fzero call as the input. If you do, the function w...

Hello guys i need help

Don't try to call fzero with a function handle to the function containing the fzero call as the input. If you do, the function w...

2 dagar ago | 0

Answered

The input character is not valid in MATLAB statements or expressions

Have you opened the appcoef function in the Editor previously, even accidentally? If so, open it in the Editor again and see if ...

The input character is not valid in MATLAB statements or expressions

Have you opened the appcoef function in the Editor previously, even accidentally? If so, open it in the Editor again and see if ...

3 dagar ago | 0

| accepted

Answered

Return Indices for x Smallest/Largest Values in Array

Use the second output of the mink or maxk functions.

Return Indices for x Smallest/Largest Values in Array

Use the second output of the mink or maxk functions.

3 dagar ago | 2

| accepted

Answered

MatlabR19b problem

It's rare that private functions have help text. They cannot be called directly except by functions in the directory containing ...

MatlabR19b problem

It's rare that private functions have help text. They cannot be called directly except by functions in the directory containing ...

3 dagar ago | 0

Answered

Inconsistent handles structure in GUI callback function

My guess is that you specified the callback function that executes as an anonymous function that does not accept the handles str...

Inconsistent handles structure in GUI callback function

My guess is that you specified the callback function that executes as an anonymous function that does not accept the handles str...

4 dagar ago | 0

| accepted

Answered

not enough input argument error

It seems like you're trying to call a function using the description of a variable from the Workspace window rather than the var...

not enough input argument error

It seems like you're trying to call a function using the description of a variable from the Workspace window rather than the var...

4 dagar ago | 0

Answered

Usage of xticks() when plotting a timetable

If your concern about "manually specify[ing] them" is that you don't want to have to type each one, you don't have to type each ...

Usage of xticks() when plotting a timetable

If your concern about "manually specify[ing] them" is that you don't want to have to type each one, you don't have to type each ...

4 dagar ago | 0

| accepted

Answered

Using dsp.CumulativeProduct inside a function

Is there a reason you need to call dsp.CumulativeProduct specifically rather than calling the cumprod function included in MATLA...

Using dsp.CumulativeProduct inside a function

Is there a reason you need to call dsp.CumulativeProduct specifically rather than calling the cumprod function included in MATLA...

4 dagar ago | 0

Answered

Undefined function 'symsum' for input arguments of type 'uint8'

Nowhere in your code do you define any symbolic variables so symsum is not the right tool to use in this situation. Use sum and ...

Undefined function 'symsum' for input arguments of type 'uint8'

Nowhere in your code do you define any symbolic variables so symsum is not the right tool to use in this situation. Use sum and ...

4 dagar ago | 0

| accepted

Answered

How can I make my code run faster?

My suspicion is that if you were to profile this code the exist calls would consume the most time. If I understand what you're t...

How can I make my code run faster?

My suspicion is that if you were to profile this code the exist calls would consume the most time. If I understand what you're t...

4 dagar ago | 0

Answered

hex2dec return error

Since you're using release R2019b you can directly enter hex and binary numbers. >> x = 0x238a x = uint16 9098 See the...

hex2dec return error

Since you're using release R2019b you can directly enter hex and binary numbers. >> x = 0x238a x = uint16 9098 See the...

4 dagar ago | 0

Answered

Issue with gammainc(x,a) for small x and larger a

Depending on what you plan to do with this tiny number, using the 'scaledlower' option for gammainc may help. I computed the ove...

Issue with gammainc(x,a) for small x and larger a

Depending on what you plan to do with this tiny number, using the 'scaledlower' option for gammainc may help. I computed the ove...

5 dagar ago | 0

Answered

How to count the number of times I called a function (using the command line)

Since you're doing this as part of an App Designer app, why not store the iteration count in a property of your app? As long as ...

How to count the number of times I called a function (using the command line)

Since you're doing this as part of an App Designer app, why not store the iteration count in a property of your app? As long as ...

5 dagar ago | 1

Answered

Sin and Cosine curves are coming out like zigzags

Let's draw sine curves with varying numbers of points. for pts = 1:9 subplot(3, 3, pts) x = linspace(0, 2*pi, 2^pts);...

Sin and Cosine curves are coming out like zigzags

Let's draw sine curves with varying numbers of points. for pts = 1:9 subplot(3, 3, pts) x = linspace(0, 2*pi, 2^pts);...

5 dagar ago | 0

Answered

Parentheses in code to make code more readable

You might be interested in enabling code folding for your if/else blocks and/or your switch/case blocks in the Editor/Debugger p...

Parentheses in code to make code more readable

You might be interested in enabling code folding for your if/else blocks and/or your switch/case blocks in the Editor/Debugger p...

5 dagar ago | 0

Answered

How to know results

As written your code solves for the roots of the 7th order polynomial whose coefficients are: p = 8 134 53 34 ...

How to know results

As written your code solves for the roots of the 7th order polynomial whose coefficients are: p = 8 134 53 34 ...

5 dagar ago | 0

Answered

convert double array to categorical

Consider using discretize. x = rand(10, 1); c = discretize(x, 0:0.25:1, 'categorical'); t = table(x, c)

convert double array to categorical

Consider using discretize. x = rand(10, 1); c = discretize(x, 0:0.25:1, 'categorical'); t = table(x, c)

5 dagar ago | 1

Answered

Why do I get an error 358 when attempting to activate MATLAB?

See this Answers post.

Why do I get an error 358 when attempting to activate MATLAB?

See this Answers post.

6 dagar ago | 0

Answered

Hello, I'd like to define this function. Any help please?

A couple comments: function u1_problem(x) Your function doesn't return any values to its caller. So whatever variables you def...

Hello, I'd like to define this function. Any help please?

A couple comments: function u1_problem(x) Your function doesn't return any values to its caller. So whatever variables you def...

6 dagar ago | 1

Answered

View Reshape Function Code

We don't distribute the source code for that built-in function.

View Reshape Function Code

We don't distribute the source code for that built-in function.

6 dagar ago | 1

Answered

What is problem to make space curve [2*cos(t),2*sin(t),5]?

You want to draw this curve in the section of 3-d space in the plane z = 5? You need to specify one z coordinate for each coordi...

What is problem to make space curve [2*cos(t),2*sin(t),5]?

You want to draw this curve in the section of 3-d space in the plane z = 5? You need to specify one z coordinate for each coordi...

6 dagar ago | 0

| accepted

Answered

Writing m function to be read by Livescript

If the name of the main function in a function file and the name of the function file itself are different, MATLAB will know the...

Writing m function to be read by Livescript

If the name of the main function in a function file and the name of the function file itself are different, MATLAB will know the...

7 dagar ago | 0

Answered

How can the code tell if a single test is running instead of the whole test class?

If you're running this to debug, I assume you actually want the additional information only when the test fails. If so try matla...

How can the code tell if a single test is running instead of the whole test class?

If you're running this to debug, I assume you actually want the additional information only when the test fails. If so try matla...

9 dagar ago | 0

Answered

I can't get a license though I have paid

Please check your spam folder to determine if the email from MathWorks with your installation instructions has been caught there...

I can't get a license though I have paid

Please check your spam folder to determine if the email from MathWorks with your installation instructions has been caught there...

9 dagar ago | 0

Answered

What is wrong with my code.I want to connect stars(*)by straight line,but it's printing only points,not line!

You're creating one line per ginput call, plotting one point per line. They're not all the same line object so they're not conne...

What is wrong with my code.I want to connect stars(*)by straight line,but it's printing only points,not line!

You're creating one line per ginput call, plotting one point per line. They're not all the same line object so they're not conne...

9 dagar ago | 0

Answered

why a variable is remaining unchanged when solving two simultaneous ordinary differential equation using ode45?

Let's look at both terms of the expression you use to define dX(1). dX=[(m*(Ca0-x(1))/rho*V)-k*x(1)*exp(-E/R*x(2)); For the fi...

why a variable is remaining unchanged when solving two simultaneous ordinary differential equation using ode45?

Let's look at both terms of the expression you use to define dX(1). dX=[(m*(Ca0-x(1))/rho*V)-k*x(1)*exp(-E/R*x(2)); For the fi...

9 dagar ago | 2