Community Profile

Steven Lord


MathWorks

2,763 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 the MATLAB Newsgroup 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

  • Ace
  • 12 Month Streak
  • Revival Level 3
  • Thankful Level 3
  • Knowledgeable Level 4
  • First Answer
  • Scavenger Finisher
  • Solver

View details...

Contributions in
View by

Answered
How to delete two minimum elements in a vector?
Use the mink or maxk functions introduced in release R2017b.

4 hours ago | 0

Answered
I'm getiing this error while running the below code and the error is "Function 'subsindex' is not defined for values of class 'cell'". Could anyone tell me the way to minimize it?
You've defined a variable named trainingOptions. That line of code is being interpreted as an attempt to index into that variabl...

1 day ago | 0

| accepted

Answered
Is there issue with .mat files in matlab R2018b?
Is this part of the error message exactly how it appears in the Command Window? Can not write file C:\Users\STG\Desktop\ART_LTS...

1 day ago | 0

Answered
I'm not being able to open or save scripts
Your function length.m is taking precedent over the built-in length function. Functions that expect to call the built-in functio...

2 days ago | 0

Answered
How to display the x and y coordinates of specific points on the plotted graph in matlab??
Do you want to place some text there using the text function?

3 days ago | 0

Answered
How to extract raw data of ode23 or dde23 simulation?
If you want to stop the solution process once one of the components exceeds a certain value, use an Events function (see the Eve...

3 days ago | 0

| accepted

Answered
Draw direction arrows on top of wind magnitude time series.
Do you want to overlay a quiver plot on top of a regular line plot? If so, call hold on after creating the first plot but before...

3 days ago | 0

Answered
Why does the auto-evaluation code give me an error for the last argument ?
From the assignment: The output of the function gives the indexes of such elements found in column-major order. Does your funct...

3 days ago | 0

Answered
How can i put my four different arrays dataset in the in form of [X,Y,Z,V] = flow (10)
The flow function is a helper function used by a number of demo files. It doesn't do anything really special. It just calls mesh...

4 days ago | 0

Answered
At least one END is missing: the statement may begin here.
Copy and paste this code into the MATLAB Editor. Select all that text, right-click, and select the "Smart Indent" menu option. T...

4 days ago | 0

Answered
i confuse using syms variable
The symbolic expression on the right side of the equals sign: L*[(bet(i)*vtet(i))/(tet(i)^2);-(alf(i)*vtet(i))/(tet(i)^2);(stet...

5 days ago | 0

| accepted

Answered
Debug and Focus, Huh?
Try turning off the "Automatically open files when MATLAB reaches a breakpoint" entry in the MATLAB Editor/Debugger preferences....

5 days ago | 1

Answered
Implement a user defined function that generates matrix of random integers of specified order and range
Implementing the Mersenne Twister (as used by default by rand, randi, and randn) seems like a pretty big task for a homework ass...

5 days ago | 2

Answered
How to break down fminsearch in execution
So you want the optimizer to show you some information then wait for you to perform some sort of experiment and provide the answ...

5 days ago | 0

| accepted

Answered
Nested Indexing in a Single Line command
Using the answer from Bob Nbob's comment: mystr = regexp(exp{end},'\W','split'); mystr = mystr{end}; That's one line (albeit n...

6 days ago | 0

| accepted

Answered
ode45 error problem in following code
mu = @(S,P) mumax*S./(Ks + S)*(1 - (P/Kp))^0.5; % Monod Equation rg = @(X,S) mu(S)*X; % Rate of cell growth As defined mu is a...

6 days ago | 1

Answered
Where do I find the files for Simulink examples in R2018b?
If you have the SimEvents product installed, this command will show you where the file is located. which seExampleEstimatingAss...

6 days ago | 0

Answered
Order of the Matlab Ode Solutions Appearing at Output?
If you're solving ODEs using ode15i or any of the numeric ODE solvers in MATLAB, the order of the solutions in the y output (or ...

6 days ago | 1

Answered
Is it possible to convert a duration array to something else like a number or string?
If you convert the duration to a double, what should it represent? The number of years, days, hours, minutes, seconds, or millis...

7 days ago | 0

Answered
Convert character matrix to numeric matrix
If I understand your goal correctly, use the unique function. sampleWords = {'apple', 'banana', 'cherry'}; n = numel(sampleWor...

8 days ago | 1

Answered
Is there any way to normalize any matrix values to be between (-1) and (1)?
Use the normalize function with the 'range' method if you're using release R2018a or later.

8 days ago | 0

Answered
Table column with different subclasses of a superclass
So you want a heterogeneous array?

8 days ago | 2

| accepted

Answered
Finding the 7-day minimum of a time series
I think you should be able to use the output of the movmin function to do what you want. A = [7 6 5 4 3 2 3 4 5 6 7]; r = movm...

8 days ago | 2

| accepted

Answered
I want to get minimum number of k for the sum of series to be greater than 10000. But I am getting S=0 and k=1 only.
Is 0 greater than 10000? If not, MATLAB will never enter the body of your while loop. Your condition is incorrect. BTW, your ti...

10 days ago | 0

Answered
Stiff differential equation solvers
There are several stiff solvers. See the "Basic Solver Selection" section on this documentation page for a table indicating whic...

10 days ago | 2

Answered
How to rotate axis of polarscatter plot?
The axes in which a polarscatter plot is located is a polaraxes. The polaraxes object has a large number of properties for contr...

10 days ago | 1

Answered
While using Cleve Moler's 'surfer' function, I keep encountering 'ogp.me' website. Why is that?
Does the page on which you're running surfer link to that website? Can you show us exactly what you mean (with a screenshot or ...

10 days ago | 0

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
The left side of this line of code refers to 1 element of T3. The right side refers to a 4 element matrix. T3(a)=[1 y(a); 0 1]...

11 days ago | 1

| accepted

Answered
Get UNIX standard timestamp on MATLAB
Use posixtime.

11 days ago | 0

| accepted

Answered
2 bugs in draw digraph
The ArrowPosition property was introduced in release R2018b according to the Release Notes. The documentation for the ArrowSi...

12 days ago | 1

Load more