Community Profile

photo

Steven Lord

MathWorks

Last seen: Today Active 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.

Statistics

All
  • Treasure Hunt Participant
  • Scavenger Finisher
  • Thankful Level 5
  • Master
  • Solver
  • Personal Best Downloads Level 2
  • Editor's Pick
  • 36 Month Streak
  • 5-Star Galaxy Level 4
  • First Submission
  • Revival Level 3
  • Knowledgeable Level 5

View badges

Content Feed

Answered
Find country code from city name
As far as I'm aware there's no function in MATLAB to map address information to country information, but if there is a web resou...

ongeveer 24 uur ago | 0

Answered
pause() function is inaccurate
You probably want to create an audioplayer object and call playblocking on it instead of using sound. load handel sound(y, Fs)...

1 dag ago | 2

| accepted

Answered
Couldn't find the file
That data file is in the example's folder, which is not on the MATLAB path by default. If you open the example in MATLAB using t...

1 dag ago | 0

Answered
problems with creating a multiplication table
If you change your code so as to no longer use table as a variable name (since table already has a meaning in MATLAB) you could ...

1 dag ago | 1

Answered
value of type 'sym' is not convertible to 'double'
You cannot create a sparse matrix that contains a symbolic expression. Either store the symbolic expression in a symbolic matrix...

2 dagen ago | 0

Answered
"Precise" random variables from a distribution
Since 0.01 cannot be exactly represented in double precision, your values may not be exactly multiples of one-hundredth. But if ...

3 dagen ago | 0

Answered
using inputdlg function in user defined function
Since you're doing this in a MATLAB Function block, rather than bringing up a dialog each time I'd consider using a Constant blo...

3 dagen ago | 0

Answered
matlab.unittest.TestCase automatic retry
This isn't directly an answer to your question, but as an alternative to always needing to rerun some or all of your tests can y...

3 dagen ago | 0

Answered
Round towards specific values in an array
A = [2000 1999 1998 1996 1993].'; B = [2000 1995 1990 1985 1980].'; Assuming all the elements of B are unique, interpolate to ...

3 dagen ago | 0

Answered
LaTeX interpreter is not working correctly with code including subscripts in Control System Toolbox legends
This is Not a Bug. In LaTeX, A_bc will only treat b as a subscript. In order to include multiple symbols in a subscript (or supe...

3 dagen ago | 0

Answered
add columns to matrix
In general you can use blkdiag. A=[1 2 3 6 ]; B=[4 5 5 6 9 8 7 6 9 6 8 6 9]; D=[4 1 2 3 5 68 9 6 9 6 9 6 9 6 9 63 45 82 85 96...

4 dagen ago | 0

| accepted

Answered
How can I edit code so only bottom graph is displayed.
The histcounts function does not return an object with properties like the histogram function does, but the outputs from histcou...

5 dagen ago | 0

Answered
Plotting a multi-dimensional matrix
In MATLAB select the Plots tab on the Toolstrip. Click the small downward pointing triangle to the right side of the Plots secti...

5 dagen ago | 0

Answered
Detect and remove outliers in signals
You could try filling the outliers with NaN values (or some other method) using the filloutliers function. x = [1 2 99 4 5] fi...

6 dagen ago | 0

Answered
Matlab 2020a doesn't find complier when it did with 2017a
According to the Supported Compilers column entry for release R2020a on the Previous Releases system requirements page Windows S...

7 dagen ago | 0

Answered
When will Ubuntu 22.04 be supported?
Ubuntu 22.04 LTS is not listed on the Platform Road Map. Therefore as far as I'm aware we have not announced when or if this OS ...

7 dagen ago | 0

Answered
find(V==max(V),1,'first') returns index that is way beyond the first index where X reaches the maximum
What are the sizes of the variables involved in creating your plot above, and what is the exact syntax for the plot function tha...

7 dagen ago | 0

Answered
How to plot and save the content of a 5D array?
Is your main question how to assemble the file name? I'd use a string array. n = 1; p = 42; q = 999; filename = "part" + n +...

7 dagen ago | 0

| accepted

Answered
Missing Simscape examples in R2022a
If you're trying to open this example, that example is part of the Simscape Electrical product. The output of ver that you've sh...

7 dagen ago | 0

| accepted

Answered
Datetime errors when I import data
When you selected options in the Import Tool, you told it that you wanted it to import your Scadenza data as a datetime array. B...

7 dagen ago | 0

Answered
Saving Each Table Within a Structure as its Own Entity
So if I understand what you want to do correctly, you have a vector of identifiers and an array or a table of data: rng default...

8 dagen ago | 0

Answered
How do I activate a license on an off-site machine?
Is the off-site laptop able to access the internet? If not the documentation includes instructions on how to activate an install...

8 dagen ago | 0

Answered
Using logical index matrix to create another matrix with values
What do you want the elements that did not satisfy the condition in your original matrix to be in the new matrix? You can't have...

8 dagen ago | 0

| accepted

Answered
How to get variable r recognised when inputting a matrice? eg matrix1 = [1, 0; 2/r, 1]
Another approach, one that doesn't require Symbolic Math Toolbox, is to create a function that you can call with a specific valu...

8 dagen ago | 0

Answered
How do I automatically delete a file after the variables needed has been extracted.
You could delete the files one at a time, or if you are careful you could delete them with one delete call at the end of your co...

8 dagen ago | 0

| accepted

Answered
Replacing Values in Matrix that are not equal to 1 while excluding 'NaN'
There are a couple different approaches you can use. With just one dividing level I'd probably just use two logical operations a...

8 dagen ago | 1

Answered
how to calculate functions
You don't need the line of code where you define t as a symbolic variable, since on the next line you throw that symbolic variab...

9 dagen ago | 0

Answered
How to find which of my computers have Matlab installed?
See this Answers post for instructions on how to deactivate MATLAB on a machine that you cannot access.

9 dagen ago | 0

Answered
Select data from timetable according to date and time
If you want to determine if the time portion of a datetime falls in a certain window (regardless of the date portion) I recommen...

9 dagen ago | 0

Answered
Not all graphs appear at the same time
%%%%%Condiciones iniciales Phi=0.95; n=50; P0=1; x0=sqrt(P0)*randn(1,1); Q0=0.1; w0=sqrt(Q0)*randn(1,1); x(1)=Phi*x0+w0; ...

11 dagen ago | 0

Load more