Community Profile

# Steven Lord

### MathWorks

3.993 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

Throw Error in TimerFcn
This is not going to work as you've written it. Imagine if the timer's StartDelay was 60 seconds and the body of your try block...

ongeveer 3 uur ago | 0

| accepted

Divide area into polygons
Many different ways. Slice the square into 8 rectangles with horizontal cuts. Slice the square into 8 rectangles with vertical...

ongeveer 5 uur ago | 0

How to install the extractLBPFeatures function' to the old version MATLAB
According to that function's documentation page it was introduced in Computer Vision Toolbox (which may have been called Compute...

ongeveer 7 uur ago | 0

PLEASE SOMEONE HELP ME WITH THE ODE23 ERROR
Nowhere in the code you posted do you define a variable named ro2. On the line before you tried to use ro2 you defined a variabl...

ongeveer 7 uur ago | 0

Division creating many columns
Use element-wise division not matrix division. Table.PnC_Removal = (((Table.Concentration_S1 - Table.Concentration_S2)./ Table....

ongeveer 10 uur ago | 0

| accepted

Assign symbolic variables in objective function as either constants or optimisation variables
Let's treat a as a symbolic constant and examine a slightly simpler version of your function. What's the minimum value the funct...

1 dag ago | 0

| accepted

ERORR "CANNOT FIND 'GET' METHOD FOR STRING CLASS.
The approaches Geoff Hayes gave are two ways you can solve this problem. Two others: Because handles is a struct array, you cou...

1 dag ago | 0

Error using ODE45
A cleaner (IMO) approach would be to solve your system of ODEs with torque applied from time t = 0 to time t = 700. Use the resu...

1 dag ago | 0

Hi, I have problem with dsolve
Based on the longest of the Tags you specified: attempt to execute script dsolve as a function: c:\users\dell\desktop\matlab201...

1 dag ago | 0

What is the defintion of cpolygon in polygon.builtin class
It is part of an internal package, intended only for MathWorks use, and is not documented.

2 dagen ago | 1

appropriate measurement for handling error outliers
Use the functions and tasks listed on this documentation page for cleaning outliers from your data.

2 dagen ago | 0

| accepted

How can I multiply an indexed vector by scalar?
phi_i is a function, not an array. You could write B_j as the product of a number and the value you obtained from evaluating phi...

2 dagen ago | 0

| accepted

Weird class property behavior
Yes, this is documented behavior. See the "Expressions In Handle Classes" section on this documentation page and the "Initializi...

2 dagen ago | 0

| accepted

Error using load: Number of columns on line 2 of ASCII file must be the same as previous lines.

3 dagen ago | 1

| accepted

Entries in array of class instances affecting others in my array
You're assigning the same handle object to all three elements of Terminal_array. That means changing one of the elements of Term...

3 dagen ago | 0

| accepted

Where is the matrix operator?
I think I see the confusion. You're looking at the first example on this documentation page, right? The command to create the a...

3 dagen ago | 0

| accepted

Variables in function are not stored in workspace
If you want g1 and g2 to be available in the workspace in which you call helpme, specify them as output arguments for helpme: f...

4 dagen ago | 0

| accepted

Array indices must be positive integers or logical values.
m = (w.*q.*trig((g.^2)-(2.*delta1.*g.*a)-(2.*delta2.*g.*(B1xi./B0xi))+... ((delta1.^2).*b)+(delta1.*delta2.*a.*(B1xi./B0xi)...

4 dagen ago | 1

How can I resolve this problem regarding nested functions?
Your first attempt is pretty close. Just a couple comments: function [root1, root2]= getreal(a,b,c); getinput function get...

4 dagen ago | 0

Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers, use '.^'.
x^5 is conceptually equivalent to x*x*x*x*x using matrix multiplication. x.^5 is conceptually equivalent to x.*x.*x.*x.*x using...

5 dagen ago | 0

5 dagen ago | 0

Why I get ans = logical 1
Another approach uses discretize. >> A = randn(10, 1); >> edges = [-Inf -0.9957 0 0.9957 Inf]; >> values = [-1.493, -0.497, 0...

5 dagen ago | 1

| accepted

String Comparison giving weird results, false for a true case.
If you're looking to find and/or fill missing data take a look at the ismissing and fillmissing functions. rng default A = ran...

5 dagen ago | 0

why cant multiply an anonymous function with a changing variable?
integral will call your function with a vector of values and expects your function to return a vector of the same size. w and s1...

5 dagen ago | 1

| accepted

error when compiling with mcc and app designer
Is the command you're trying to execute literally this? mcc -m -I app.pathmatlab app.filematlab If the inputs you want to pass...

5 dagen ago | 0

| accepted

How to get detectSpeech function in MATLAB2019b
This function was introduced in release R2020a, according to the note at the end of its documentation page. You will need to upg...

6 dagen ago | 0

Why character or string array cannot be constructed like numerical array?
You have to start with the correct type of array. a = ""; a(1:3) = "er"

7 dagen ago | 1

| accepted

I can't create a graph using matlab...
When I tried to read the data from that channel the output data was the 0-by-0 empty. The channelInfo output states that this c...

7 dagen ago | 1

| accepted

Error in using rmoutliers()
The 'percentiles' option for rmoutliers, isoutlier, and filloutliers was introduced in release R2019a. You indicated you're usin...

7 dagen ago | 0

| accepted