Community Profile

photo

Steven Lord


MathWorks

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

  • 24 Month Streak
  • Ace
  • Revival Level 3
  • Thankful Level 3
  • Knowledgeable Level 4
  • First Answer
  • Scavenger Finisher
  • Solver

View details...

Contributions in
View by

Answered
Roots function is solving eigth order polynomial equation as fifth order.
Specify the 'All' option in your call to coeffs to return all the coefficients, even those that are 0.

16 hours ago | 0

| accepted

Answered
Separate out every fourth element of a Vector
If by " so you have to make it clear that this is not the intention." you mean you don't want to delete every fourth element but...

1 day ago | 0

Answered
Create variable from an excel entry
Are you required to store this data in an Excel spreadsheet? I'd prefer storing this in a plain text file. Plot.Shift=20; Plot...

1 day ago | 0

Answered
how to catch when a figure was minimized
Make the figure window 'fullscreen'? f = figure('WindowState', 'fullscreen');

2 days ago | 0

Answered
Comparing Duration Arrays is time consuming - How to improve my script?
So you want to extract only those subset of rows of your data that fall into a certain time span? If so, and if you choose to st...

2 days ago | 0

Answered
Changing data from long form to short form
Participant_ID = [1; 1; 1; 2; 2; 2]; Trial = [1; 2; 3; 1; 2; 3]; RT = [342; 346; 534; 242; 131; 531]; t = table(Participant...

3 days ago | 2

Answered
Count how many elements are present inside arrays
V= [1 2 3 4 7 8 9 10 11 12 14 16 17]; P = [1 2 3 4 7 8 9 10 11 12 14 16 17 2 7 9 11 12 3 1 10]; F = [1 2 3 4 7 9 10 11 12 14 ...

3 days ago | 0

Answered
Binning a column vector to certain values (includes negative values)
The left edge of your first bin should be less than than the first value you want included in that bin. Right now, -0.2 doesn't ...

3 days ago | 0

Answered
How can I prealloate a comlex-valued matrix?
I would probably use the 'like' syntax for the zeros function. A = zeros(10000, 500, 'like', 1i);

3 days ago | 2

| accepted

Answered
Is Matlab R2019B compatible with Windows server 2019?
The system requirements say yes, release R2019b is supported on Windows Server 2019.

3 days ago | 0

Answered
tool for performing data preprocessing
MATLAB has a number of functions to perform various types of data preprocessing tasks. That page lists some of the functions for...

3 days ago | 0

Answered
is it a bug?
If you call plot with an output argument to return handles to any lines that are created, you'll see that 100 individual lines g...

4 days ago | 0

| accepted

Answered
Which Add-on contains Simscape Power Systems?
In release R2018b two products, one of which was Simscape Power Systems™, were combined into Simscape™ Electrical™.

4 days ago | 1

Answered
Delete and add new edges in a graph
A graph object is undirected. A digraph object is directed. Construct your network graph using digraph instead of graph on the ...

4 days ago | 0

| accepted

Answered
unexpected MATLAB expression in app designer, using app designer in general
classdef GuiScanner_1 < matlab.apps.AppBase % Properties that correspond to app components properties (Access = public...

4 days ago | 0

| accepted

Answered
Always prepend "app" to shared variable in App Designer?
If by "warnings" you mean the orange underlines of that section of your code, neither. It is a feature not of App Designer but o...

4 days ago | 0

| accepted

Answered
What is defined as an integer type, when calling validateattributes?
The word 'integer' is a slightly overloaded term in MATLAB. Whether it's appropriate for your purposes to use 'integer' in the t...

5 days ago | 0

Answered
Variables Not Showing in Workspace After Clearing/Workspace Won't Update Varaibles
My guess is that you're working with function files rather than script files. One of the key differences between scripts and fun...

5 days ago | 0

| accepted

Answered
Why does setdiff answer depend on order of arguments?
Were you expecting the output to contain elements that are only in one of the inputs but not both? That's not what setdiff does....

6 days ago | 0

| accepted

Answered
Matlab home use. Not for research. What does that mean?
If you want an official answer about whether the way you plan to use the software is compatible with the Home license and/or the...

6 days ago | 0

Answered
'Long-runtime problem', improve code, partial sums.
n=50000;%The sum will be from 1 to n m=1:1:n;%vector from 1 to n partes=80;% divide the calculations in 'partes' parts na=2;%...

6 days ago | 0

Answered
How to compare date in table to Today's date?
You probably want to call datetime with the 'ConvertFrom' and/or 'InputFormat' options. The 'excel' or 'excel1904' values for th...

9 days ago | 0

| accepted

Answered
How to index tables in a struct? (to call each field from App Designer)
app.data = load('workspace.mat'); % command used to load the workspace in App Designer for i = 1 : numel(fieldnames(app.data)) ...

9 days ago | 0

Solved


Add two numbers
Given a and b, return the sum a+b in c.

9 days ago

Answered
How to obtain the second most frequent label using mode function
Do you need to do this using the mode function? If you're looking to compute the K most frequently predicted labels, I'd use hi...

9 days ago | 0

Answered
Write A Tall Array
As stated on that documentation page the first input argument in your call to the write function (which is either location or fi...

9 days ago | 0

Answered
if a variable has the dimension 1 x 1 is it a matrix, scalar, row or column vector
dpb and John are correct that the answer is "all of the above". There are functions you can use to check this (see the "Determin...

9 days ago | 0

| accepted

Answered
Is there a way to split MATLAB m scripts into a header file with multiple include files?
You can do what ES suggested and be okay some or most of the time, but this won't always work. Consider a function: function y ...

10 days ago | 0

Load more