Community Profile # Steven Lord

### MathWorks

4,774 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 stop cyclic program in Matlab online - timer
Let's go through your function line by line. function start () fileID = fopen('exptable.txt','w'); a = timer; se...

4 hours ago | 0

sorting table according to date/time
which failed, probably becasue I am not defining the AM/PM symbols. According to the table in the description of the Format pro...

6 hours ago | 0

How to fix it.
So you want to take 5001 values and generate 25005 (5001 times 5) values using those values. How do you want to generate the add...

6 hours ago | 1

| accepted

Why does rem(a, b) function give different answers for input values class 'double' and 'uint64'?
Let's look at the value stored in a1 converted to a uint64. >> a1 = 9419588158802421600; b1 = 44; >> a2 = uint64(9419588158...

7 hours ago | 0

Why does rem(Centnum,5) give me an answer that is not zero?
>> x = 7.45; >> d = floor(x); >> c = x-d c = 0.45 >> cn = 100*c; >> cn - 45 ans = 1.4210854...

1 day ago | 0

Roll a 6-Sided Die and Compute the Probability of the Sum (with bar graph)
function prob = ex4(n) % % rng('shuffle') prob = zeros(1,12); TotalNRolls = 0; while TotalNRolls <= n Conceptual question...

1 day ago | 0

This documentation page includes instructions on how to configure source control tools to use tools provided by MathWorks to dif...

1 day ago | 0

How do I perform fft for each column in a matrix?
If you want to make it explicit that you're operating down the columns, from the documentation page: "Y = fft(X,n,dim) returns t...

1 day ago | 0

Workaround on curvefit limitation
The built-in library of fits only contains sum of sines and Fourier fits up to sin8 and fourier8. If appropriate you could write...

1 day ago | 1

| accepted

how to using single editor in matlab2020a
As stated on this documentation page "At the upper right of the tool panel, click [the downward pointing triangle in a circle], ...

1 day ago | 0

Invalid use of operator.
Let's play "Count the parentheses". The way to play: Start a counter at 0. Whenever you see a ( add 1 to the counter. Wheneve...

2 days ago | 0

A variable saved in a structure as a mat file in 2018b seems unreadable in 2020b
If the definition of the Defect class is not available when you try to load it from the mat-file how would MATLAB know how to co...

2 days ago | 0

| accepted

table2timetable adding time vector with start- and end date
The times for a timetable can be either a datetime array or a duration array. Turn your data into a duration array and use it to...

4 days ago | 0

| accepted

char to double data type
I recommend turning the character data representing dates into a datetime array and using that datetime array along with your do...

4 days ago | 0

Can I store a function including multiple variable?
You can't call a function handle using :. If you want the anonymous function to "remember" and use the values of x and t that yo...

6 days ago | 0

Hi, I want a solution regarding below error.
Google found only one hit for mk_egs_string. It was this question. So this is not a MathWorks function, nor is it a function on ...

7 days ago | 0

I have matrix A, calculate null(A) but then A*null(A) doesn't give me 0?
Note that the description of the output argument on the documentation page for the null function does not include the character ...

7 days ago | 0

Is there such a table units identification approach?
Let's make a sample table and give it some units: >> load patients >> patients = table(LastName,Gender,Age); >> patients.Prop...

7 days ago | 0

| accepted

How to find what settings "tsne" is using when I do not specify any Name Value pairs as options?
Open the documentation page for tsne using the doc command. Scroll down to the Name-Value Pair Arguments subsection of the Input...

7 days ago | 0

| accepted

Why matlab live editor and matlab script gives different rank calculation result for the same matrix ?
The value MATLAB displays is sometimes not the value MATLAB uses in computations. >> format short >> x = 1 + 1e-8 x = 1....

8 days ago | 1

MATLAB CODE COVID-19
This is not at all what I'd call a trivial task, given the number of papers and stories on the MathWorks COVID-19 R&D page. At a...

8 days ago | 0

Help me read the doc on matlab.fonts Settings
What is the purpose of TemporaryValue ? The name itself indicates that its value will only be used for a limited time. Setting ...

8 days ago | 0

| accepted

I'm not familiar with that package but I'm curious if the ilu function in MATLAB would be suitable for your needs?

8 days ago | 0

How to change variable in base workspace without blocking the thread?
Are you using the Simulink Support Package for Arduino Hardware? I have not used this myself but I would be surprised if it didn...

8 days ago | 0

What products are Recommended?
In addition to what the other posters suggested, take a look at the Solutions page on the website. This lists various industries...

8 days ago | 1

Complex number to polar form
Use pol2cart and cart2pol to convert between the (r, theta) and (real, imag) representations of the complex numbers. Since I'm g...

8 days ago | 0

pitch function equation for documentation
Do the Algorithms and References sections on the documentation page for the pitch function not provide the information you want ...

9 days ago | 0

Stuck on question 2.
Under the constraints that you have to use nested for loops and that this only has to work for matrices, not N-dimensional array...

9 days ago | 0

| accepted