Community Profile

# Steven Lord

### MathWorks

3,035 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

View details...

Contributions in
View by

How to set datetime for every 9.9156 days?
Do you want a certain number of 9.9156 day intervals from your starting time, or do you want intervals of length 9.9156 days sta...

5 hours ago | 1

Pca built-in function and how its works?
The books and papers listed in the References section on the documentation page for the pca function in Statistics and Machine L...

8 hours ago | 0

Two fields Tooltip and TooltipString duplicating each other.
Yes and the Release Notes recommend using the Tooltip property. TooltipString is not necommended as of release R2018b.

9 hours ago | 0

| accepted

Generating function handles with large numbers of variable coefficients
You're using release R2018a, so you can take advantage of implicit expansion. I = reshape(1:60, [3 4 5]); b = [1 2 3 4 5]; R...

1 day ago | 0

| accepted

Changing data type within a table from type table to any other data type
Using parentheses to extract elements from a table returns a table array. Using curly braces to extract elements from a table r...

1 day ago | 0

Error using cell/ismember (line 34) Input A of class double and input B of class cell must be cell arrays of character vectors, unless one is a character vector. Error in untitled5 (line 190) if ismember(BW6(i,j),array1)~= logical(1)
So you want all the unique elements of the matrix? Use the unique function or if "close enough" counts use the uniquetol functio...

1 day ago | 0

Transform NaN into number
For this application, I'd use fillmissing. It will do the same task as filling in locations using logical indexing with the outp...

1 day ago | 2

| accepted

OOP - convert base class object to sub class object
I think this approach has a couple problems, two conceptual and one specific to Guillaume's implementation. Conceptually, wit...

1 day ago | 1

i am getting recursive limit crossed and not been able to get the answer when i tried to implement Median of Medians pseudo code given on Wikipedia
In your select function: function sel = select(list,left,right,n) if (left == right) sel=left; end pivotIndex = piv...

1 day ago | 0

why some of the built-in function of my matlab (2018b) can not work? like fit, confint...
The fit function used that way is part of Curve Fitting Toolbox, as is the confint function. You most likely do not have this to...

1 day ago | 1

datetime to samplenumber slow
Do you want to compute the median for overlapping / sliding windows of 5 minutes, or do you want to compute it for each non-over...

1 day ago | 0

Input a variable into a plot title
With the introduction of the string array in release R2016b (and the ability to enclose text data in double quotes to create a s...

2 days ago | 0

| accepted

Sort an array while keeping the right index
Look at the second output from the sort function. That can be used to generate the first output of sort from the input array, bu...

2 days ago | 0

why no statistic in workspace
Nothing is wrong, this is the expected behavior for functions. From the documentation, "Functions have their own workspace, sepa...

3 days ago | 0

Optimoptions set both Display AND Parallel properties
You can't solve problem 1 using either optimset or optimoptions. The Optimization Toolbox options reference page shows that Use...

4 days ago | 0

| accepted

importing large 4GB+ tab-delimited ascii file makes MATLAB crash
Consider making a tall array or perhaps using memmapfile. These tools are linked from this documentation page. Please also send...

7 days ago | 0

Drawing out a graph, animating a 2-d graph in MATLAB
Use the functions and techniques described on this documentation page. The easiest would probably be comet or animatedline.

7 days ago | 0

What are my options for compiling Statistics on Missing Data Values
See the functions and topics related to missing data on this documentation page. For your stated tasks ismissing should be suffi...

7 days ago | 1

Array is stopping at lower variable count
for w=numel(Folders) This "loops" over one value, which means you're only going to access the files in the last element of Fold...

7 days ago | 1

| accepted

ode output function problem
As documented in the odeset function documentation page the function you specify as your custom OutputFcn must have a certain sy...

8 days ago | 0

| accepted

using a vector/array as a counter in a for loop, or while loop?!
Rather than creating and deleting the line each time, why not use one of the animation tools and/or techniques shown on this doc...

8 days ago | 0

Calculate mean from daily to monthly values
Use the groupsummary function or store your data in a timetable and use retime on that timetable.

8 days ago | 0

Upgrade Matlab version/server out of maintenance
Please send this licensing question directly to the Sales department using the telephone icon in the upper-right corner of this ...

8 days ago | 0

How to create a planar STL in PDE Modeler?
You can look at the PlateHolePlanar.stl file being imported by that example. edit PlateHolePlanar.stl It looks to me like the ...

9 days ago | 0

how can i find convex and concave points
Depending on what you want to do with this information (which is not clear from the question) you may find the ischange function...

9 days ago | 1

Define a new fitting function
Is your data stored as row vectors? If so, transpose them (using the .' operator) to be column vectors in your call to fit.

9 days ago | 1

| accepted

findLobes function on MATLAB_2019a
In order to use the findLobes function in Antenna Toolbox, its first input must be a polarpattern object. When you call findLobe...

10 days ago | 1

Formulation to Matlab code
There's no need to loop. The log and log10 functions can operate on arrays of data, and as long as you use element-wise multipli...

10 days ago | 0

How can I which value that be used to calculate a function
Since you indicate that you're using release R2019a, call min with the 'linear' option and two output arguments. This will give ...

10 days ago | 0