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 do I input and solve a system of differential equations in matlab

I recommend you visit the Ordinary Differential Equations category in the documentation. Several of the Topics pages listed in t...

How do I input and solve a system of differential equations in matlab

I recommend you visit the Ordinary Differential Equations category in the documentation. Several of the Topics pages listed in t...

2 hours ago | 0

Answered

User inputs for publish

To me, publishing is intended as a non-interactive activity. You should be able to start the publishing process, go get a cup of...

User inputs for publish

To me, publishing is intended as a non-interactive activity. You should be able to start the publishing process, go get a cup of...

3 hours ago | 1

Answered

How does mat2cell work?

Let's try this with a slightly smaller matrix, so you can see what's going on. A = reshape(1:24, [3 8]) Let's slice this into ...

How does mat2cell work?

Let's try this with a slightly smaller matrix, so you can see what's going on. A = reshape(1:24, [3 8]) Let's slice this into ...

5 hours ago | 0

| accepted

Answered

How do I do a Matlab assignment (report)?

Assuming this is homework, you should probably ask your professor about the format of the report they expect you to submit. You...

How do I do a Matlab assignment (report)?

Assuming this is homework, you should probably ask your professor about the format of the report they expect you to submit. You...

18 hours ago | 0

Answered

I have a question

You did not end the command you executed immediately before calling imshow(d) with a semicolon. I'm guessing that command was a ...

I have a question

You did not end the command you executed immediately before calling imshow(d) with a semicolon. I'm guessing that command was a ...

1 day ago | 1

Answered

how do I generate new random number every time I run a exe file?

See this documentation page that discusses why random numbers repeat after startup.

how do I generate new random number every time I run a exe file?

See this documentation page that discusses why random numbers repeat after startup.

1 day ago | 0

Answered

How to interpolate under specific condition?

If you were using release R2020b or later, I would recommend calling the fillmissing function with the 'MaxGap' option. I'm leav...

How to interpolate under specific condition?

If you were using release R2020b or later, I would recommend calling the fillmissing function with the 'MaxGap' option. I'm leav...

1 day ago | 1

Answered

Different results for the same equation

lambda(1) is displayed the same as lambda(3) but its value is not identical to the value of lambda(3). A = [-10 10 -15; 10 5 -3...

Different results for the same equation

lambda(1) is displayed the same as lambda(3) but its value is not identical to the value of lambda(3). A = [-10 10 -15; 10 5 -3...

1 day ago | 0

Answered

Plotting a random walk step by step

You're adding a new line to the axes each time you want to put a new point down. That's numberOfWalks times stepsPerWalk differe...

Plotting a random walk step by step

You're adding a new line to the axes each time you want to put a new point down. That's numberOfWalks times stepsPerWalk differe...

1 day ago | 0

Answered

Error with validate attribute

Nowhere in your message did you show the error you received. Please show all the text displayed in the Command Window in red and...

Error with validate attribute

Nowhere in your message did you show the error you received. Please show all the text displayed in the Command Window in red and...

2 days ago | 0

| accepted

Answered

calculate a grade of students

%purpose is showing grades of 102 students and assign a letter grades %the grades will be random numbers between 0 to 100 clc;...

calculate a grade of students

%purpose is showing grades of 102 students and assign a letter grades %the grades will be random numbers between 0 to 100 clc;...

2 days ago | 0

Answered

Unit testing with externally configurable parameters.

Write a parameterized test whose parameter is the port name. Inject a value for that parameter into the test when you create the...

Unit testing with externally configurable parameters.

Write a parameterized test whose parameter is the port name. Inject a value for that parameter into the test when you create the...

2 days ago | 0

| accepted

Answered

C++ to matlab, anybody can help?

Are you trying to solve the same type of problem the matchpairs function does?

C++ to matlab, anybody can help?

Are you trying to solve the same type of problem the matchpairs function does?

2 days ago | 0

Answered

Ploting a Histogram with two data sets (One data set with respect to the other).

Do you want a 2-D histogram? x = [-9.3185, -9.2809,-9.2079,-9.1043,-9.1989,-9.1040,-9.1865,-9.0970,-9.0852,-9.0967,... -9....

Ploting a Histogram with two data sets (One data set with respect to the other).

Do you want a 2-D histogram? x = [-9.3185, -9.2809,-9.2079,-9.1043,-9.1989,-9.1040,-9.1865,-9.0970,-9.0852,-9.0967,... -9....

2 days ago | 0

| accepted

Answered

square root of pi

I would have both the Area and Diameter properties depend upon a third (maybe public, maybe internal) property. Setting either A...

square root of pi

I would have both the Area and Diameter properties depend upon a third (maybe public, maybe internal) property. Setting either A...

2 days ago | 0

Answered

Create datetime from two columns of a table

I would use synchronize for this task. Let's start with some table data. v = (0:9).'; datePart = repmat("02-01-20", 10, 1); t...

Create datetime from two columns of a table

I would use synchronize for this task. Let's start with some table data. v = (0:9).'; datePart = repmat("02-01-20", 10, 1); t...

2 days ago | 0

Answered

How do you pass a variable between two different matlab apps

Have you tried following the procedure shown on this documentation page?

How do you pass a variable between two different matlab apps

Have you tried following the procedure shown on this documentation page?

3 days ago | 0

Answered

Changing the initial variables when passing into an ode45 solver

I would call the ODE solver three times. First, solve over the time span [0, 20]. Next, use the final value from that first OD...

Changing the initial variables when passing into an ode45 solver

I would call the ODE solver three times. First, solve over the time span [0, 20]. Next, use the final value from that first OD...

3 days ago | 0

| accepted

Answered

Only the real part of the complex number is displayed

I believe you're using the bank display format (format bank) which does not show the imaginary parts of numbers. What would $4.5...

Only the real part of the complex number is displayed

I believe you're using the bank display format (format bank) which does not show the imaginary parts of numbers. What would $4.5...

3 days ago | 0

| accepted

Answered

Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters

When you define a function the inputs must be specified as variable names in the definition. [Slight oversimplification, but goo...

Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters

When you define a function the inputs must be specified as variable names in the definition. [Slight oversimplification, but goo...

3 days ago | 0

Answered

Colors in Matlab as a vriable

Do you want your users to select colors by name or by appearance? If the latter use uisetcolor.

Colors in Matlab as a vriable

Do you want your users to select colors by name or by appearance? If the latter use uisetcolor.

3 days ago | 0

Answered

Location of plot for subplot(2,2,3)

For a subplot(2,2,3), the plot is located in 3-rd position in 2x2 matrix form. Up to now the plot is placed in the lower left c...

Location of plot for subplot(2,2,3)

For a subplot(2,2,3), the plot is located in 3-rd position in 2x2 matrix form. Up to now the plot is placed in the lower left c...

3 days ago | 0

Answered

Portable version of Matlab

Two other options that I believe did not yet exist when this question was originally asked in 2015 are MATLAB Online and MATLAB ...

Portable version of Matlab

Two other options that I believe did not yet exist when this question was originally asked in 2015 are MATLAB Online and MATLAB ...

4 days ago | 0

Answered

f(x) is different of f(value of x)

The value stored in an array is not necessarily the same value that is displayed. Right now Forbes magazine lists the net worth...

f(x) is different of f(value of x)

The value stored in an array is not necessarily the same value that is displayed. Right now Forbes magazine lists the net worth...

4 days ago | 0

Answered

Conditional with time in ode45

Solve the system from time t = 0 to time t = 300 with the first value of upsilon. Use the value of the solution at t = 300 as th...

Conditional with time in ode45

Solve the system from time t = 0 to time t = 300 with the first value of upsilon. Use the value of the solution at t = 300 as th...

5 days ago | 1

Answered

How can I install Matlab R2013a on macOS 11.1?

This post states MATLAB release R2020b and later are supported on Big Sur and that earlier releases are not supported. The syst...

How can I install Matlab R2013a on macOS 11.1?

This post states MATLAB release R2020b and later are supported on Big Sur and that earlier releases are not supported. The syst...

5 days ago | 0

Answered

How to plot string on X-axes and number in Y-axes in figure?

This doesn't do what you think it does. x_axes=['Case-1','Case-2','Case-3','Case-4'] Instead use a string array or a cell arra...

How to plot string on X-axes and number in Y-axes in figure?

This doesn't do what you think it does. x_axes=['Case-1','Case-2','Case-3','Case-4'] Instead use a string array or a cell arra...

8 days ago | 0

| accepted

Answered

Cannot find highlight function

The description of the first input argument H listed on the documentation page indicates it must be a GraphPlot object created b...

Cannot find highlight function

The description of the first input argument H listed on the documentation page indicates it must be a GraphPlot object created b...

8 days ago | 0

| accepted

Answered

Converting char array into string cells

Rather than creating a cell array containing char vectors, why not create a string array? x = [0 1 3 0]; s = string(x) three ...

Converting char array into string cells

Rather than creating a cell array containing char vectors, why not create a string array? x = [0 1 3 0]; s = string(x) three ...

8 days ago | 1