Community Profile

photo

Steven Lord


Last seen: Today

MathWorks

5,094 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
colon expression to use integer operands
Seems to work fine for me. stepSize = (pi/512); thRadDbl = (0:stepSize:(2*pi - stepSize)); thRadDbl(1:5) There's no way you'...

5 hours ago | 0

Answered
How to smooth out plotted points in a graph/figure?
Rather than creating one line per point I would consider using either scatter or one line per point color. xy = rand(10, 2); s...

13 hours ago | 0

Answered
How to convert data byte by byte
s = '|0|01|00|5e|' data = split(s, '|') d = hex2dec(data) If you want to eliminate the first and last 0 in d, trim the leadin...

16 hours ago | 0

Answered
Subscript a table error while indexing
Did you define a variable named table? If so you will be unable to call the table function to create more table arrays while tha...

17 hours ago | 0

Answered
Replacing a numberless string in matrix with a number
I would likely use a string array. colors = ["green"; "blue"; "yellow"; "purple"]; % Make some sample data ind = randi(numel(...

20 hours ago | 0

Answered
Feature selection functions in R2018b
At the end of the documentation page for the fscchi2 function it states the function was introduced in release R2020a. Similarl...

21 hours ago | 0

Answered
mat2str() on complex values with 0 inaginary part
Not a bug. Many operations in MATLAB, if the result has an all zero imaginary part, will remove that imaginary part. complex is ...

1 day ago | 0

Answered
Can I make money with the Trading Toolbox?
If you want an official answer to this licensing question, please contact Customer Service using this page (linked from the Supp...

1 day ago | 2

Answered
Trigonometric functions pi independent support, accurately, atanpi, asinpi, ...
Please submit enhancement requests to Technical Support using the Contact Support link on the Support section of this site if yo...

2 days ago | 0

Answered
Convenient handling of datetime function arguments and class properties
But that didn't work out, because Matlab's one-arg datetime(x) constructor interprets numeric inputs as datevecs, not datetimes....

2 days ago | 0

Answered
How can I get a calculated function value???
Since you're mentioning that you evaluate the function and then define a value for u, I assume you're using symbolic variables f...

2 days ago | 0

Answered
How do I set a class property?
If you want to initialize the value once and have that be unchangeable for the rest of the lifetime of the object, make it a Con...

2 days ago | 0

Answered
Will "Hydraulic (Isothermal Liquid)" be replaced with "Isothermal Liquid"?
Take a look at the relevant entries in the Simscape Fluids Release Notes for more information about these two blocks.

2 days ago | 0

Answered
Is there a limit to the number of elements in an array in Matlab
If you want the data to be read in as uint16 and then returned as uint16 as well, use '*uint16' as the precision input in your c...

2 days ago | 0

Answered
Solve a*x + x*(b^x) + c = 0
I'm doubtful that you'll be able to find a general symbolic solution. Substitute numeric values in for a, b, and c and use fzero...

3 days ago | 0

Answered
How can I solve this following problem? (overcome * mark)
From the help text for the format function: format RAT Approximation by ratio of small integers. Numbers ...

3 days ago | 0

Answered
how to display on increment 0.5 for time
Either create a counter that counts how many iterations you've performed and only fprintf if the counter indicates the current v...

3 days ago | 0

Answered
Is it possible to manipulate a plot axis; i.e., divide values by 1000 so that the x axis range is 0 to 300 instead of 0 to 300000 and also get rid of exponential notation?
If you access the numeric ruler associated with the coordinate axes using the XAxis, YAxis, or ZAxis properties of the axes obje...

3 days ago | 0

Answered
Finding smaller and larger values than user's input for 2D interpolation
Is your data gridded or scattered? If it's gridded, scroll down to the "Interpolation with the interp Family of Functions" secti...

4 days ago | 0

Answered
Using fzero for intesection and "integral" for area calculation
clear, clc, clear plot Use these commands sparingly or not at all in a script file. People running your script may not expect a...

4 days ago | 0

Answered
Requested array exceeds the maximum possible variable size.
Let's say you want to extract the two elements equal to 1 in this matrix. A = [1 2 3; 4 5 6; 7 8 1] You can do this with find ...

4 days ago | 0

| accepted

Answered
where is my fault?
The find function just tells you which elements of its input are true. It doesn't actually select if the next line of code shoul...

4 days ago | 1

Answered
Missing toolbox Parallel computing
Did you (or your school or company) purchase licenses for those two toolboxes? If you're not sure, I recommend checking with who...

4 days ago | 0

Answered
bisector method help and inputs
You haven't showed the code for your APFunction, so all we can say is that you're calling it with five input arguments and it mu...

5 days ago | 0

Answered
Using obj within function without passing it
The online documentation indicates I do not need to pass obj to the function to use it within That is incorrect. See the "Metho...

5 days ago | 0

| accepted

Answered
What does fzero take as input for the function?
then what does the function findmode take as input x? fzero will call your findmode function repeatedly with various values as ...

6 days ago | 1

| accepted

Answered
Handling Big Data in MatLab
Some of the tools and techniques described in the Large Files and Big Data category in the documentation may be of interest to y...

6 days ago | 0

| accepted

Answered
Finding the trajectory of a ball
Do not call ode45 with fball as the ODE function from within fball itself! That way lies (at best) a recursion error. Call ode45...

7 days ago | 0

| accepted

Answered
Error using tiledlayout syntax instead of subplot when referencing axes handles
Be very careful about using gca, gcf, etc. in your code. I generally only use those when I'm experimenting in the Command Window...

7 days ago | 0

| accepted

Load more