Community Profile

photo

Steven Lord


Last seen: Today

MathWorks

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

circa 18 ore 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...

circa 18 ore 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...

circa 22 ore 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',...

1 giorno ago | 1

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

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

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

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

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

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

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

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

2 giorni 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)?

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

2 giorni ago | 0

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

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

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

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

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

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

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

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

4 giorni 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

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

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

4 giorni ago | 0

Answered
Why the results are different every time using the code of Nonnegative matrix factorization ?
From the documentation page for the nnmf function: "The factorization uses an iterative method starting with random initial valu...

4 giorni ago | 0

Answered
Plot shows no line, only markers
Do your time and/or data vectors contain NaN values? any(isnan(time1)) any(isnan(time2)) any(isnan(data1)) any(isnan(data2))...

5 giorni ago | 0

Answered
Worldwide statistics on use of Matlab products
This page states "The tools used at more than 6500 universities worldwide." You may find the company fact sheet interesting. W...

5 giorni ago | 0

Answered
Matlab 5.2
Are you asking if you can run MATLAB 5.2 using that license? Possibly if you can find an old machine. The System Requirements fo...

5 giorni ago | 0

Answered
code analyzer bar not indicating syntax errors
There are some problems that Code Analyzer's static analysis can detect, but a misspelled function name is not always something ...

5 giorni ago | 0

| accepted

Load more