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

Is This Concatenation Error a Bug?

(t and x come from a .mat file and are always equal dimensions and data types). Trust but verify. Set an error breakpoint and r...

Is This Concatenation Error a Bug?

(t and x come from a .mat file and are always equal dimensions and data types). Trust but verify. Set an error breakpoint and r...

alrededor de 4 horas ago | 1

Answered

why does it get stuck in loop if?

In the part of your code that starts with the comment %inner nodes above intersection you have a while statement: while((Ny-d)<...

why does it get stuck in loop if?

In the part of your code that starts with the comment %inner nodes above intersection you have a while statement: while((Ny-d)<...

alrededor de 10 horas ago | 0

Answered

Enquiry about the reason for the program not responding to the entered code

Are you copying the body of the function from this File Exchange submission into the Command Window? Note that the function requ...

Enquiry about the reason for the program not responding to the entered code

Are you copying the body of the function from this File Exchange submission into the Command Window? Note that the function requ...

alrededor de 11 horas ago | 0

Answered

Check for missing argument or incorrect argument data type in call to function 'diff'. How to solve the issue? Please help.

The inline function is not recommended. If you were writing a function to be evaluated in MATLAB, you should create an anonymous...

Check for missing argument or incorrect argument data type in call to function 'diff'. How to solve the issue? Please help.

The inline function is not recommended. If you were writing a function to be evaluated in MATLAB, you should create an anonymous...

alrededor de 14 horas ago | 0

Answered

finding x0 in ziggurat algorithm

So you want to know how to find the equivalents of the numbers 0.83, 1.17, 1.47, 1.78, and 2.18 in the plot on this post on Clev...

finding x0 in ziggurat algorithm

So you want to know how to find the equivalents of the numbers 0.83, 1.17, 1.47, 1.78, and 2.18 in the plot on this post on Clev...

alrededor de 15 horas ago | 0

Answered

Converting numeric elements to date

Depending what operations you need to perform, you may be able to keep your data as a datetime array without converting it to se...

Converting numeric elements to date

Depending what operations you need to perform, you may be able to keep your data as a datetime array without converting it to se...

alrededor de 16 horas ago | 0

| accepted

Answered

Calling a variable using a function - basic

function c = rand_val rand_val = rand end When you call this function it will throw an error. You'd defined rand_val to retur...

Calling a variable using a function - basic

function c = rand_val rand_val = rand end When you call this function it will throw an error. You'd defined rand_val to retur...

alrededor de 16 horas ago | 0

Answered

How to print the data in the indicated manner with indicating numbers ?

You're almost there. When you call string on a non-scalar double array, each element of the double array becomes an element of t...

How to print the data in the indicated manner with indicating numbers ?

You're almost there. When you call string on a non-scalar double array, each element of the double array becomes an element of t...

alrededor de 16 horas ago | 0

| accepted

Answered

Writing Functions that take inputs?

If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free M...

Writing Functions that take inputs?

If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free M...

1 día ago | 0

Answered

How can I use a for loop to create new variables?

There are many posts that say trying to create numbered variables like that is discouraged, yes. If you want to put all those p...

How can I use a for loop to create new variables?

There are many posts that say trying to create numbered variables like that is discouraged, yes. If you want to put all those p...

1 día ago | 1

| accepted

Answered

Indexing errors on sum

I'm guessing you've defined a variable named sum that's preventing you from calling the sum function. If my guess is correct cle...

Indexing errors on sum

I'm guessing you've defined a variable named sum that's preventing you from calling the sum function. If my guess is correct cle...

1 día ago | 0

| accepted

Answered

What is wrong with my polyfit variable?

Most likely at least one element of your x data is non-positive. x = 0:10; y = x; p1 = polyfit(log(x), log(y), 1) % Warning a...

What is wrong with my polyfit variable?

Most likely at least one element of your x data is non-positive. x = 0:10; y = x; p1 = polyfit(log(x), log(y), 1) % Warning a...

1 día ago | 0

Answered

timetable retime error - input timetable must contain unique row times

First, don't name a variable timetable. That already has a meaning in MATLAB. Second, at least two rows of your timetable (whic...

timetable retime error - input timetable must contain unique row times

First, don't name a variable timetable. That already has a meaning in MATLAB. Second, at least two rows of your timetable (whic...

1 día ago | 0

| accepted

Answered

OpenPose Matlab: pertained network offline

I've reported this issue to the development staff.

OpenPose Matlab: pertained network offline

I've reported this issue to the development staff.

1 día ago | 0

Answered

How to delete k in random n set number?

Use randperm to shuffle the numbers 1 through 20 and simply select the next element not yet chosen each time you need a random k...

How to delete k in random n set number?

Use randperm to shuffle the numbers 1 through 20 and simply select the next element not yet chosen each time you need a random k...

1 día ago | 0

Answered

Frustrating matlab is.

Others have given you the answer. This problem involves just basic indexing in MATLAB, so I'm guessing you're relatively new to ...

Frustrating matlab is.

Others have given you the answer. This problem involves just basic indexing in MATLAB, so I'm guessing you're relatively new to ...

2 días ago | 0

Answered

Compare two text files from MATLAB Command Window using FC Windows 10 file comparison command

Use the system function instead of the ! (bang) operator.

Compare two text files from MATLAB Command Window using FC Windows 10 file comparison command

Use the system function instead of the ! (bang) operator.

3 días ago | 2

| accepted

Answered

Extracting specific rows with different content from a large table array

Consider storing your data in a timetable, converting your MatDate variable into a datetime array and using table2timetable (or ...

Extracting specific rows with different content from a large table array

Consider storing your data in a timetable, converting your MatDate variable into a datetime array and using table2timetable (or ...

3 días ago | 1

Answered

Matrix cos. Did I write the expression and correctly?

You can check your answer using the funm function in MATLAB.

Matrix cos. Did I write the expression and correctly?

You can check your answer using the funm function in MATLAB.

3 días ago | 0

Answered

I did Exercise 3.1 by commenting the code. However while doing Exercise 3.2 onwards part (a) I am getting some errors. I had pasted my code below the pictures.

Your assignment instructs you to write a MATLAB function image_sample but you have written a MATLAB script image_sample. See thi...

I did Exercise 3.1 by commenting the code. However while doing Exercise 3.2 onwards part (a) I am getting some errors. I had pasted my code below the pictures.

Your assignment instructs you to write a MATLAB function image_sample but you have written a MATLAB script image_sample. See thi...

3 días ago | 0

Answered

How do I fix this ?

In addition to the output argument renaming others have suggested, as written you need to assign something to the output argumen...

How do I fix this ?

In addition to the output argument renaming others have suggested, as written you need to assign something to the output argumen...

3 días ago | 0

Answered

How to install DSP system Toolbox in an Offline Machine?

See this Answers post.

How to install DSP system Toolbox in an Offline Machine?

See this Answers post.

3 días ago | 0

Answered

Why is matlab busy?

i = 1+1; Did you mean to add 1 to i rather than adding 1 to 1? The length of r is greater than 2, so the condition of your ...

Why is matlab busy?

i = 1+1; Did you mean to add 1 to i rather than adding 1 to 1? The length of r is greater than 2, so the condition of your ...

3 días ago | 0

Answered

About function in methods of a class

If getRandomMusic is a non-Static method of a class (which I'll call iPod just to have some way to refer to the class) then at l...

About function in methods of a class

If getRandomMusic is a non-Static method of a class (which I'll call iPod just to have some way to refer to the class) then at l...

3 días ago | 0

| accepted

Answered

Citing MathWorks Documenation (ASCE format)

This Answers post offers some suggestions.

Citing MathWorks Documenation (ASCE format)

This Answers post offers some suggestions.

3 días ago | 0

Answered

simple problem with double integral, why give me an error?

The function you pass into simulannealbnd must return a double array not a sym array. Convert the value of the integral into dou...

simple problem with double integral, why give me an error?

The function you pass into simulannealbnd must return a double array not a sym array. Convert the value of the integral into dou...

3 días ago | 0

| accepted

Answered

SOS: How do I get the same amount of positive and negative values in a random vector?

% Generate sample data x = randn(1, 50); y = randn(1, 50); % Determine where positive and negative values occur in each xp...

SOS: How do I get the same amount of positive and negative values in a random vector?

% Generate sample data x = randn(1, 50); y = randn(1, 50); % Determine where positive and negative values occur in each xp...

4 días ago | 0

| accepted

Answered

How to...live script

When you're checking with your calculator, are you taking the sine of x in degrees (for which the corresponding function in MATL...

How to...live script

When you're checking with your calculator, are you taking the sine of x in degrees (for which the corresponding function in MATL...

4 días ago | 0

Answered

How to Display a message in a separate window

If you're using App Designer use uialert. If you're not using App Designer use msgbox.

How to Display a message in a separate window

If you're using App Designer use uialert. If you're not using App Designer use msgbox.

5 días ago | 0

| accepted

Answered

Undefined function 'mtimes' for input arguments of type 'function_handle'.

You can't multiply a function handle and a number or two function handles. You can multiply the result you get from evaluating ...

Undefined function 'mtimes' for input arguments of type 'function_handle'.

You can't multiply a function handle and a number or two function handles. You can multiply the result you get from evaluating ...

5 días ago | 0

| accepted