Community Profile

photo

Steven Lord


Last seen: Today

MathWorks

5,049 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

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

View details...

Contributions in
View by

Answered
Store a vector in one function and access it from another function in Appdesigner.
See this documentation page.

15 hours ago | 0

| accepted

Answered
Dos command doesn't work through Matlab, and works OK in command window
You cannot use double quotes both to surround the command and inside the command, at least not that way. Something like this wou...

18 hours ago | 0

Answered
Hello, can you help me with drawing up such a scheme, what source data is needed and in what form and how to enter them into the program (Matlab Simulink)?
Section 5 of the paper to which you linked seems to explain the meanings of most if not all of the identifiers given in that Sim...

1 day ago | 0

| accepted

Answered
Error using atan2 Inputs must be real.
Set an error breakpoint and run your code. When MATLAB stops on that line, look at the values you're passing into atan2 in the c...

1 day ago | 0

Answered
Quotes matlab please help
What layout is your keyboard setup? On my 104 key US-QWERTY the single quote character used to create a char vector is immediate...

1 day ago | 0

Answered
Do anyone know how to graph your function in the interval from x=0 to inf
The fplot function allows you to specify the range of x over which you want your function to be plotted. syms x fplot(sin(x), ...

3 days ago | 0

| accepted

Answered
Solution to time and space dependent ODE
See the ode45 function and the example on its documentation page that discusses passing additional parameters into your ODE func...

3 days ago | 0

Answered
-If else- conditionals in matlab app.designer?
Compare: 'ac' == 'ad' % returns a 1-by-2 logical array 'ac' == "ad" % returns a 1-by-1 logical array When you compare two cha...

3 days ago | 1

| accepted

Answered
nlinfit command problem :(
From the error message: "Weights must be a vector of real positive weights ..." Are they? Is dA a vector? Check with isvector. ...

3 days ago | 0

| accepted

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...

4 days 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...

4 days 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 ...

4 days 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...

4 days 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 ...

5 days ago | 1

| accepted

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.

5 days ago | 0

| accepted

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...

5 days 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...

5 days 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...

5 days 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...

6 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;...

6 days ago | 1

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...

6 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?

6 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....

6 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...

6 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...

6 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?

6 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...

6 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...

6 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...

7 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.

7 days ago | 0

Load more