# Steven Lord

### MathWorks

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**

RANK**13**

of 262.482

REPUTATION**14.170**

CONTRIBUTIONS

**0** Questions

**6.618** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**2.394**

RANK**495** of 17.973

REPUTATION**3.242**

AVERAGE RATING**3.40**

CONTRIBUTIONS**5** Files

DOWNLOADS **26**

ALL TIME DOWNLOADS**31696**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

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

etwa 8 Stunden ago | 0

| accepted

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

etwa 23 Stunden ago | 0

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

ein Tag ago | 0

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

2 Tage ago | 0

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

3 Tage ago | 0

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

3 Tage ago | 0

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

3 Tage ago | 0

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

3 Tage ago | 0

| accepted

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

3 Tage ago | 0

| accepted

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

3 Tage ago | 0

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

4 Tage ago | 0

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

4 Tage ago | 0

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

4 Tage ago | 0

| accepted

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

4 Tage ago | 0

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

4 Tage ago | 0

| accepted

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

4 Tage ago | 1

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

5 Tage ago | 0

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.

5 Tage ago | 0

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

5 Tage ago | 0

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

7 Tage ago | 0

How can I get permutations of a vector satisfying the given condition?

My first thought would be to construct a digraph from your data then try to find Hamiltonian paths in that digraph. Or there may...

7 Tage ago | 0

How do I set coefficient variables in Fittype that was generated in Fitting toolbox?

On the documentation page for the fittype function, see the "Use Anonymous Functions to Work with Problem Parameters and Workspa...

8 Tage ago | 0

Calculating the value, excluding nan

Consider storing your data in a timetable array, with the dates associated with your data stored as a datetime array. If you do ...

8 Tage ago | 0

Function listed in Data Acquisition Toolbox is not available after installing toolbox

According to the information at the end of the documentation page for the tdmsinfo function in Data Acquisition Toolbox, it was ...

8 Tage ago | 1

| accepted

question about command 'mat2cell'

Use repmat to build your vector of tile heights or widths. A = ones(8); n = 2; v = repmat(n, 1, 4) % You could compute the 4 ...

8 Tage ago | 0

Getting the error. "index exceeds the number of array elements".

When i is 2, you assign to h(2) but then on the next line you attempt to access h(3). That element doesn't exist yet. I suggest...

8 Tage ago | 0

| accepted

Function call another function

If you only want functions in the directory containing your main file1 and file2 functions to be able to call your helpers, cons...

10 Tage ago | 0

How do I assign result array of a loop to a variable name?

Can you dynamically create variables with numbered names like uniqueCost1, uniqueCost2, uniqueCost3, etc.? Yes. Should you do t...

10 Tage ago | 0

| accepted

download the projects in examples

If you have the products that contain those examples installed and licensed (and are using a release that is the one in which th...

10 Tage ago | 0

| accepted

How do I continuously update a figure axis with time values using animatedline?

The problem with this code is that the x-axis only shows the most recently collected timestamp. That is the correct behavior as...

10 Tage ago | 0