Community Profile

photo

Steven Lord


MathWorks

3 347 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
Write class methods outside the class file
Rather than defining the class methods in the classdef file to call a separate function, I'd just define them in a separate file...

ungefär 7 timmar ago | 1

| accepted

Answered
Event function with multiple events
When you define your options structure with: option2 = odeset('Events', @comp); the ODE solver will call your Events function ...

ungefär 10 timmar ago | 0

| accepted

Answered
Extract Variable/column with variable name from table
In what form do you want the extracted variables to be stored? A = magic(4); T = array2table(A) % Variable names A1 through A4...

ungefär 11 timmar ago | 0

| accepted

Answered
Is there a way that we can identify the output of the figures that fall within the assigned range?
Use the discretize function.

2 dagar ago | 0

| accepted

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.

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

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

3 dagar ago | 0

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

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

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

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

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

4 dagar 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);

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

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

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

5 dagar 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™.

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

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

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

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

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

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

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

7 dagar 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;%...

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

10 dagar 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)) ...

10 dagar ago | 0

Solved


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

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

10 dagar ago | 0

Load more