Community Profile

# Steven Lord

### MathWorks

4 225 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 transpose a table of double values without the doubles getting converted to integers?
That tells me your table contains both int64 and double data. When you combine the table values into one array with table2array ...

ungefär 20 timmar ago | 0

Plot function with time step
A slightly different way to create that vector would be to compute integer multiples of the spacing. First I'll make some sample...

en dag ago | 2

How to dramatically speed-up the function plot
The key information is in the Description section on the plot documentation page. "plot(X,Y) creates a 2-D line plot of the dat...

2 dagar ago | 0

| accepted

Does infinite norm function use singular value ?
As stated on the documentation page for the norm function and on Wikipedia, the infinity norm of a matrix is the maximum of its ...

2 dagar ago | 0

Hello guys i need help
Don't try to call fzero with a function handle to the function containing the fzero call as the input. If you do, the function w...

2 dagar ago | 0

The input character is not valid in MATLAB statements or expressions
Have you opened the appcoef function in the Editor previously, even accidentally? If so, open it in the Editor again and see if ...

3 dagar ago | 0

| accepted

Return Indices for x Smallest/Largest Values in Array
Use the second output of the mink or maxk functions.

3 dagar ago | 2

| accepted

MatlabR19b problem
It's rare that private functions have help text. They cannot be called directly except by functions in the directory containing ...

3 dagar ago | 0

Inconsistent handles structure in GUI callback function
My guess is that you specified the callback function that executes as an anonymous function that does not accept the handles str...

4 dagar ago | 0

| accepted

not enough input argument error
It seems like you're trying to call a function using the description of a variable from the Workspace window rather than the var...

4 dagar ago | 0

Usage of xticks() when plotting a timetable
If your concern about "manually specify[ing] them" is that you don't want to have to type each one, you don't have to type each ...

4 dagar ago | 0

| accepted

Using dsp.CumulativeProduct inside a function
Is there a reason you need to call dsp.CumulativeProduct specifically rather than calling the cumprod function included in MATLA...

4 dagar ago | 0

Undefined function 'symsum' for input arguments of type 'uint8'
Nowhere in your code do you define any symbolic variables so symsum is not the right tool to use in this situation. Use sum and ...

4 dagar ago | 0

| accepted

How can I make my code run faster?
My suspicion is that if you were to profile this code the exist calls would consume the most time. If I understand what you're t...

4 dagar ago | 0

hex2dec return error
Since you're using release R2019b you can directly enter hex and binary numbers. >> x = 0x238a x = uint16 9098 See the...

4 dagar ago | 0

Issue with gammainc(x,a) for small x and larger a
Depending on what you plan to do with this tiny number, using the 'scaledlower' option for gammainc may help. I computed the ove...

5 dagar ago | 0

How to count the number of times I called a function (using the command line)
Since you're doing this as part of an App Designer app, why not store the iteration count in a property of your app? As long as ...

5 dagar ago | 1

Sin and Cosine curves are coming out like zigzags
Let's draw sine curves with varying numbers of points. for pts = 1:9 subplot(3, 3, pts) x = linspace(0, 2*pi, 2^pts);...

5 dagar ago | 0

Parentheses in code to make code more readable
You might be interested in enabling code folding for your if/else blocks and/or your switch/case blocks in the Editor/Debugger p...

5 dagar ago | 0

How to know results
As written your code solves for the roots of the 7th order polynomial whose coefficients are: p = 8 134 53 34 ...

5 dagar ago | 0

convert double array to categorical
Consider using discretize. x = rand(10, 1); c = discretize(x, 0:0.25:1, 'categorical'); t = table(x, c)

5 dagar ago | 1

Why do I get an error 358 when attempting to activate MATLAB?

6 dagar ago | 0

Hello, I'd like to define this function. Any help please?
A couple comments: function u1_problem(x) Your function doesn't return any values to its caller. So whatever variables you def...

6 dagar ago | 1

View Reshape Function Code
We don't distribute the source code for that built-in function.

6 dagar ago | 1

What is problem to make space curve [2*cos(t),2*sin(t),5]?
You want to draw this curve in the section of 3-d space in the plane z = 5? You need to specify one z coordinate for each coordi...

6 dagar ago | 0

| accepted

Writing m function to be read by Livescript
If the name of the main function in a function file and the name of the function file itself are different, MATLAB will know the...

7 dagar ago | 0

How can the code tell if a single test is running instead of the whole test class?
If you're running this to debug, I assume you actually want the additional information only when the test fails. If so try matla...

9 dagar ago | 0

I can't get a license though I have paid
Please check your spam folder to determine if the email from MathWorks with your installation instructions has been caught there...

9 dagar ago | 0