Community Profile # Steven Lord

### MathWorks

4.200 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

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

etwa 5 Stunden 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...

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

2 Tage ago | 0

What is wrong with my code.I want to connect stars(*)by straight line,but it's printing only points,not line!
You're creating one line per ginput call, plotting one point per line. They're not all the same line object so they're not conne...

2 Tage ago | 0

why a variable is remaining unchanged when solving two simultaneous ordinary differential equation using ode45?
Let's look at both terms of the expression you use to define dX(1). dX=[(m*(Ca0-x(1))/rho*V)-k*x(1)*exp(-E/R*x(2)); For the fi...

2 Tage ago | 2

Search a Table With Numerical Entries
If you want to make a digraph from your table, you don't need to go to the three-column table first. Let's make a sample table i...

2 Tage ago | 0

| accepted

How to fix this "Error using matlab.ui.​control.in​ternal.mod​el.Abstrac​tNumericCo​mponent/se​t.Value (line 111) 'Value' must be a double scalar." ??
Where do you assign a value to the private property valueToSimulink and what value do you assign to that property? Set a breakp...

2 Tage ago | 0

READTABLE FUNCTION. NOT WORKING FOR ME.
You're trying to read a file with the extension xlxs. The file you've highlighted in the Current Folder window has the extensio...

2 Tage ago | 0

Can you help me ? Indexing error
You've defined a variable named det in your code. Because of this you cannot use the det function. Attempting to call det (the f...

2 Tage ago | 0

| accepted

is there's a way to automatically find peaks in an histogram?
You can do this using the islocalmax function. % Sample data rng default x = randn(1, 1e5); h = histogram(x); % Retrieve ...

3 Tage ago | 0

| accepted

Create New Array from Existing Array using For Loop and If Statement
No need for a for loop or an if statement. x = randi([30 390], 10, 10) y = mod(x, 360) Depending whether or not you want y to...

3 Tage ago | 1

| accepted

Unexpected error on line with property validation
The ability to validate property values that way was introduced in release R2017a. It won't work in earlier releases.

3 Tage ago | 1

| accepted

How to solve an ODE system with time-dependent variables in MATLAB?
From your description, it sounds like you don't have an ordinary differential equation (ODE) but you have a delay differential e...

3 Tage ago | 0

Working with Matlab for a 15! x 30 matrix
To speak to some of the questions Image Analyst asked, how large a contiguous block of memory would storing this matrix require?...

3 Tage ago | 0

matlab space error problem
You can use concatenation as Fangjun Jiang and Brent Kostich suggested. I'd probably use join instead. join(["I", "love", "Geor...

3 Tage ago | 0

FZERO requires at least two input arguments
I have a number of pieces of feedback on this code. It looks like it was written for an older version of MATLAB and was copied i...

3 Tage ago | 1

Ranking Variables by Value
You've made this a bit harder on yourself than it needs to be by defining individual variables for the counts and prices of each...

4 Tage ago | 1

Matlab R2016b
My suspicion is that your images folder contains no JPG files. If it doesn't, your for loop does not execute its loop body and t...

4 Tage ago | 1

Should mvnrnd Always Advance the State of the Global Stream
There's no requirement that these two lines of code that call the same function with different inputs need follow identical code...

5 Tage ago | 0

There are several different functions named predict in Statistics and Machine Learning Toolbox. Each is for a specific type of o...

5 Tage ago | 0

classes and the "set" method
Make X a Dependent property in class Dummy and make its get.X method compute the value of X using the current value of the av pr...

5 Tage ago | 0

| accepted

How do I define an empty table of unknown size?
Elements = 1:5; n = numel(Elements); T = table('Size', [2 n], 'VariableTypes', repmat("string", 1, n))

6 Tage ago | 0

| accepted

nmrval returning larger matrix than expected.
Does your X matrix contain a column of 1s? If so see the Note in the first item of the Description section on the documentation ...

6 Tage ago | 0

Plotting the ODE without an analytical solution
If your initial conditions are supposed to be: "where x(0)=0.2 and x'(0)=0 for t=0:100?" why are you specifying them as x(0) = 0...

6 Tage ago | 0

| accepted

How to write Matlab code based on the Simpson’s 1/3 rule?
When you ask for help understanding / correcting an error, please include the full and exact text of that error message (all the...

7 Tage ago | 0

How to get License number for online MATLAB if MATLAB is not installed?
The first ways I'd try to locate the license number would be to check the installation instructions you should have been sent (i...

7 Tage ago | 0

I have Symbolic Math Toolbox but get an error with syms, why?

7 Tage ago | 0

| accepted

How to do basic time arithmetic when NaNs are involved
Replace the NaN numeric values in your date cell arrays with 'NaT' and the NaN numeric values in your time cell arrays with 'NaN...

7 Tage ago | 0