Community Profile

photo

Steven Lord


Last seen: Today

MathWorks

4,617 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

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

View details...

Contributions in
View by

Answered
Error using odearguments with a symbolic system of differential equations
Your ODE function can use symbolic calculations internally but it must return a double or single array to the ODE solver. Call d...

1 hour ago | 0

Answered
I can't find the mistake in the code
I've seen two different conventions for representing polynomials as vectors of coefficients. The one used by functions like poly...

5 hours ago | 0

Answered
How to extract input variable name when calling to GUI (GUIDE) function?
If you want your app to display the name of the file that was loaded, you should probably have your app accept the filename rath...

11 hours ago | 1

Answered
System Error (MATLAB R2019a) after update
See Maadhav Akula's answer on this Answers post.

23 hours ago | 1

| accepted

Answered
Why do I get these errors in Toolbox package? Help me out
The MCR directories in the directory for MATLAB Compiler should not be on the MATLAB path. If you've added toolbox\compiler\mcr ...

1 day ago | 0

| accepted

Answered
Error using 'pi' too many input errors with my equation
You're missing * operators after the two calls to pi on the line where you define y, just like you did on the lines where you de...

2 days ago | 0

| accepted

Answered
Even binned histogram to uneven bins?
Let's make some sample data. x = randi(255, 1, 1e5); Use bin edges that are the squares of the integers between 1 and 16. Each...

2 days ago | 0

Answered
Error using subplot using for loops: subplot index too large
Set a conditional breakpoint on the line where you call subplot. The condition is nVals1*4 < indexplot. Run your code. When MATL...

2 days ago | 0

Answered
Array of Structures (not structure array)
Consider a struct whose fields are themselves struct arrays. arr.asdf = struct('A', 3, 'B', 2); arr.zxcv = struct('A', 7, 'B',...

3 days ago | 1

| accepted

Answered
Unable to use CTRL+R to comment
Open the Preferences using the button in the Enviroment section on the Home tab of the Toolstrip. In the MATLAB section of the p...

3 days ago | 0

Answered
How to upgrade Matlab Online?
I'm not on the MATLAB Online team but I see in the Application Status page that there was an issue around noon that caused some ...

3 days ago | 0

| accepted

Answered
Setting Limits to end of table Variable
Use bounds and/or min and max on your time data to find the tight bounds and use those with xlim to adjust the limits.

3 days ago | 0

Answered
Simplifying a matematical expression
After inserting it into Answers using the sigma button on the toolstrip: Honestly, I wouldn't enter this as one term. As you ...

3 days ago | 1

Answered
How can i vectorize a matrix multiplication of higher dimension arrays?
If you're using release R2020b or later, take a look at the pagemtimes function introduced in that release.

3 days ago | 1

Answered
How to multiply N matrices without a FOR loop? (Slices of 3D array)
If you're using release R2020b or later, take a look at the pagemtimes function introduced in that release.

3 days ago | 0

Answered
Matching string from multiple arrays
If you have your data stored in timetable arrays, call synchronize with your three timetable arrays as input and specify the new...

3 days ago | 0

Answered
How to write values from workspace dynamically into a table
Here's a small example you could use as a model: T = array2table(magic(3)) % T is a 3-by-3 T(4, :) = {10, 11, 12} % T is now a...

3 days ago | 0

Answered
How to enter a function into MATLAB
Is your calculator computing the cosine of angles in degrees (which in MATLAB is the cosd function) or in radians (cos)?

4 days ago | 0

Answered
Operations Research formulation in MATLAB
Looking at the code you posted as a comment I have a couple of observations and suggestions. The Queen's MATLAB was only an Apr...

4 days ago | 0

Answered
How can I multiply N dimensional matrices
See the pagemtimes function introduced in release R2020b.

4 days ago | 0

Answered
How can I check if a value in one array is in between two values in another array?
You want to discretize your data? edges = 0:2:10; sampleData = 10*rand(10, 1); whichBin = discretize(sampleData, edges); lef...

4 days ago | 0

Answered
MATLAB bug for plotting? Overlap between the x-ticks and the number labels: when using inverted y-axis and logarithmic x-axis.
When I run the code in the Description section of bug report 1832634 I see the same type of problem as in your reproduction step...

4 days ago | 1

Answered
My matlab R2020a cannot display 1 and 4 in the console and script
That is unusual, I don't think I've seen that behavior before. From your picture it looks like MATLAB can display the number 1 i...

4 days ago | 0

Answered
Creating legend based on numeric array
If you're using a newer release of MATLAB, I'd use a string array to create the legend. N = [1 7 14 30 90 180 360]; x = linspa...

4 days ago | 0

Answered
letting an object name itself
With the clarifications you gave I now have enough information to make some suggestions that may resolve the question, so I'm ma...

5 days ago | 1

| accepted

Answered
Error creating matrix using a integer and vector in Matlab
madhan ravi has told you how to do this but I want to explain why your original approach didn't work. If x is a column vector w...

5 days ago | 0

Answered
Index _Problem and for loop ??
Count your parentheses. If you start a counter at 0, add 1 to the counter every time you see a (, and subtract 1 from the counte...

5 days ago | 2

Answered
How do I increment "I" more than once in more than one range in a single for loop? Basically combine all for loops into a single loop with different "I" values.
for k = [1:9 10:10:90 100:100:1000] fprintf("The current value of k is " + k + newline) end

5 days ago | 0

Answered
The end operator must be used within an array index expression
The identifiers shot (all lower-case) and Shot (first letter capitalized) are two different things in MATLAB. Did you mean to in...

5 days ago | 0

| accepted

Answered
Remove legend from patches in Matlab
Specify the handles of the objects that you want to see in the legend when you create it. x = 0:360; axis([0 360 -1 1]) hold ...

5 days ago | 0

Load more