Community Profile

photo

Steven Lord


Last seen: Today

MathWorks

3,841 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
strange power .^ operator behaviour
Performance is one key metric of whether a function is "effective". If you wanted a power function that was as performant as pos...

14 hours ago | 0

Answered
how to write code exchange the y value in the ode15s?
Since you don't have a mass matrix for your problem, use odeset to set the NonNegative option to the indices of the components o...

16 hours ago | 0

Answered
Match function in matlab
Call the min function with two outputs. Use the second output to retrieve the corresponding value.

1 day ago | 0

Answered
How to automatically update MATLAB GUI axes handles?
Callback functions don't have outputs, at least not how they are called by the usual workflow of a UI in MATLAB. I'd probably w...

1 day ago | 0

Answered
Why did my LOAD stop working?
Did you create, download, etc. a function or class named network that is taking precedence over the definition of the network cl...

1 day ago | 0

Answered
Replacement of Nan to 2.74
You could use the fillmissing function to fill the location of your missing data (NaN for double and single precision variables)...

1 day ago | 0

Answered
Implementing Gauss Elimination by pivoting with Matlab
That's not MATLAB code. I'm not quite sure what language it is, but it's not MATLAB. If you're new to MATLAB, I recommend going...

2 days ago | 0

| accepted

Answered
I'm trying to understand your tables command bugs
What specifically does "doesn't work" mean? If you receive errors when you try running those commands, please show the full and ...

2 days ago | 0

Answered
HIDE COMMENTS IN PROGRAMS
That functionality is called code folding. Only certain types of constructs can be folded. Most of the constructs that can be fo...

2 days ago | 0

Answered
Hello i didnt get the serial number
If you are using your school's or company's license, my first step would be to contact your school or company's IT department an...

2 days ago | 0

Answered
Help with event function in ode15s
function [val, isterminal, dir] = MyEvent(~, Y) val = (Y>=1); isterminal = 1; dir = 0; end Your event function's val...

2 days ago | 0

Answered
short format for the normalized histogram
One way to do this is to use the ruler object representing the Y axis and change the TickLabelFormat for that axis. Using a slig...

3 days ago | 0

Answered
Help in Developing Graph.
The cumsum and stairs functions should do what you want to arrange your data and create the plot. xlabel and ylabel will label t...

3 days ago | 0

Answered
Import Data and plot it with an extra variable as vector
Since you reference the "Import Data" 'function' I assume you're using the Import Tool opened by clicking the button labeled "Im...

3 days ago | 0

Answered
i have different result
for T=[100;1000;10000]; % Original code When you call for with a vector as its loop variable definition, it iterates over the c...

3 days ago | 0

Answered
Assign values to numbers and recount after a fixed interval
If your Date variable is a datetime array, call day on it asking for the 'dayofyear'.

4 days ago | 0

Answered
how to solve the probelm that an input variable will be cleared in a loop in the definition of a matlab function?
In general, you shouldn't need to call clear in a function. In those situations where you must, strongly prefer calling clearvar...

4 days ago | 0

| accepted

Answered
finding all indices of a value in matrix
Do you need the locations or do you simply need to refer to the locations where the specified value occurs? Those are two slight...

4 days ago | 0

Answered
'Force' algorithm in plot MST
See this documentation page for more information.

4 days ago | 0

Answered
Should "format compact" stick between sessions?
Change the "Text display" entries in the Command Window preferences to make the changes persistent across sessions.

4 days ago | 0

| accepted

Answered
Non-integer values inside "Randi" function
If you want uniformly distributed random numbers that are not integers, randi is not the right tool for the job. See the example...

5 days ago | 1

Answered
Is it possible to write argmin in the equation for MATLAB live script ?
What specifically do you mean when you say argmin? Do you mean the location of the minimum element in a vector? See the second ...

5 days ago | 0

Answered
confusing regarding two cases of multiplication in MATLAB?
See this documentation page for a discussion of the difference between array operations and matrix operations, including example...

6 days ago | 0

Answered
Unsure what I did wrong
Don't try to raise exp(1) to the power of x. Just use exp on the array x directly. x = 1:5; y = exp(x);

6 days ago | 2

Answered
About Newton's method
As you've written your code F isn't a function. It's a numeric array. That means F(u(n-1)) is an attempt to get whatever is in e...

6 days ago | 0

Answered
Will MATLAB provide Bert word embedding support?
In general we don't discuss future plans. If you believe we should include this word embedding model in our products, please sub...

8 days ago | 0

Answered
using command to operate cftool
I don't believe there is a programmatic API for cftool. You probably want to use the programmatic workflows described on this do...

8 days ago | 0

| accepted

Answered
Getting handles of lines and deleting last 2 line plots
I wouldn't assume that the first two elements of the array returned by findobj were the last two lines created. I don't think th...

8 days ago | 0

| accepted

Answered
wind speed versus time ....mathematical expression
If you want to perform regression, see this page discussing linear regression and this one discussing nonlinear regression. You ...

8 days ago | 0

Answered
Number output when using syms
Call vpa or double on the symbolic expression.

8 days ago | 0

| accepted

Load more