Community Profile

photo

Steven Lord


Last seen: Today

MathWorks

3,964 total contributions since 2002

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.

Steven Lord's Badges

  • Personal Best Downloads Level 2
  • Editor's Pick
  • 5-Star Galaxy Level 4
  • First Submission
  • 24 Month Streak
  • Ace
  • Revival Level 3
  • Thankful Level 3
  • Knowledgeable Level 4
  • First Answer
  • Scavenger Finisher
  • Solver

View details...

Contributions in
View by

Answered
Why am I getting Nan values?
Set an error breakpoint to stop when an Inf or NaN value gets generated then run your code. When MATLAB stops, look at the line ...

6 hours ago | 0

Answered
How do I avoid using a lot of if statements in a row?
Do you need to have eleven individually numbered variables, or are they all the same size and type (and therefore "stackable" as...

6 hours ago | 0

Answered
Out of memory. Type "help memory" for your options
Rather than keeping all the data for all the frames in memory and writing the video all at once why not open the VideoWriter obj...

23 hours ago | 0

Answered
How to solve error 'Error: File: function9.m Line: 10 Column: 5 Function definition is misplaced or improperly nested.'
You cannot define a nested function inside an if statement. This is the second item listed in the "Requirements for Nested Funct...

1 day ago | 0

Answered
Explain the average of 8 nearest neighbors
Consider the following matrix. Each element is equal to its linear index. >> nRows = 4; >> nCols = 6; >> A = reshape(1:(nRows...

1 day ago | 0

Answered
I am doing triple integration by matlab and some error displayed.
Use the ^ operator when you want to perform matrix multiplication in raising the matrix to a power. Use the .^ operator when yo...

1 day ago | 0

Answered
Dot notation from string
DON'T use eval. There's no need to use it in this case anyway. split the text representation of the nested fields into pieces th...

1 day ago | 0

| accepted

Answered
Calculating with Methods from Classes
To me, it seems like most if not all of these "calc<something>" methods should probably be property get methods and the properti...

1 day ago | 0

Answered
Backward compatibility for Automated Driving Toolbox with Matlab 2016b
Automated Driving Toolbox was introduced as a new product in release R2017a. It is not available in release R2016b. If you have...

1 day ago | 0

| accepted

Answered
1. Simulink requires a C compiler for simulation acceleration, model reference, and MATLAB Function Block capabilities. It is recommended that you install a supported compiler on your machine.
This isn't a report of a problem. It states that if you want to take advantage of "simulation acceleration, model reference, an...

1 day ago | 0

Answered
Solving a system of second order differential equations
"Y" (without the quotes) is a valid variable name. "Y " (again without the quotes but with the space) is not a valid variable n...

2 days ago | 0

| accepted

Answered
How to combine correlated year, month and day vectors
Use your Y, M, and D vectors to build a datetime array and pass that datetime array into plot. Here's a small example: Y = 2020...

2 days ago | 0

Answered
How do I create a for loop in MATLAB for this?
Use the normalize function with the 'range' method. No for loop is required.

2 days ago | 1

Answered
Which matlab version is suitable Matlab for macOS Mojave
The platform roadmap page indicates the first release that supported Mac OS X 10.14 (Mojave) was release R2018b and the last tha...

2 days ago | 0

Answered
How do I call the built-in disp function after I have overloaded it in a different class?
When you concatenate a char vector and an instance of your PermutationKey class, does that return an instance of the Permutatio...

2 days ago | 0

Answered
Is the time vector t for the function odefun() inside ode45() always required?
From the documentation page for the ode45 function "The function dydt = odefun(t,y), for a scalar t and a column vector y, must ...

3 days ago | 0

Answered
How to use ode45 for a row vector
See the "Pass Extra Parameters to ODE Function" example on the documentation page for the ode45 function. You can use it as a mo...

3 days ago | 0

Answered
How to open matlab app designer in MATLAB 2020 ?
App Designer and Polyspace aren't really related. App Designer is still present in MATLAB release R2020a, and the Polyspace fami...

3 days ago | 0

Answered
why does matlab tell me that the "chop" command doesn't exist?
Cleve's original version of MATLAB had a chop command as you can see from the user's guide, but I'm not sure there is such a com...

4 days ago | 0

Answered
Query regarding the colon operator
The a variable is a 6-dimensional array. The part you're showing spans all the rows (the first colon) and all the columns (the s...

4 days ago | 0

| accepted

Answered
Spherical coordinates to cartesian
From the documentation "azimuth is the counterclockwise angle in the x-y plane measured in radians from the positive x-axis." an...

4 days ago | 0

Answered
calculate week of year
Since the original question was written, we introduced datetime. If you're representing your time and date data as a datetime, c...

5 days ago | 0

Answered
OSError: MATLAB Engine for Python supports Python version 2.7, 3.5 and 3.6 but your version of Python is 3.7
Support for Python 3.7 was added in release R2019a. The Release field to the right of this question indicates you're using relea...

5 days ago | 1

| accepted

Answered
How to create a vector with elements randomly chosen from another vector?
I have a column vector, each of whose elements is a row vector consisting of two elements The common term for that is a matrix....

5 days ago | 0

| accepted

Answered
Index in position 2 exceeds array bounds (must not exceed 5).
Rather than trusting your user to enter a value of n compatible with the sizes of A and b, compute it from A and/or b using size...

7 days ago | 0

Answered
Problem with data type: calculate [HH:mm:ss.FFF]
Convert the text representations of those values into a duration array then call seconds on the duration array.

7 days ago | 0

Answered
I want to install 2020 matlab win32
The last release of MATLAB that was supported on a 32-bit Windows OS was release R2015b. You will need to be running a 64-bit ve...

8 days ago | 0

Answered
Access automatically substructures from loop
Rather than depending on the order in which the fields of the struct array are displayed (which can change -- in the following e...

8 days ago | 0

| accepted

Answered
toolbox installastion for matlab
Use the Add-Ons functionality to add this File Exchange submission to your MATLAB installation.

8 days ago | 0

Answered
What is z1 appearing when solving this nonlinear system for x y and z?
Theoretically you could write out the roots of a quartic equation. There's a picture on the Wikipedia page for quartic function ...

8 days ago | 1

| accepted

Load more