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

of 242,722

REPUTATION**12,238**

CONTRIBUTIONS

**0** Questions

**5,822** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**2,038**

RANK**480** of 16,978

REPUTATION**3,207**

AVERAGE RATING**3.40**

CONTRIBUTIONS**5** Files

DOWNLOADS **28**

ALL TIME DOWNLOADS**31343**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Standalone application cannot read p-code?

Standalone apps cannot run any MATLAB code that was not included in the application at compile-time. From the documentation "MAT...

5 hours ago | 1

| accepted

Tiny discussion on good practices in object oriented programming (OOP) through a simple example

First, having two classes whose names differ only by casing or by the difference between singular and plural seems likely to cau...

5 hours ago | 0

Files generated during testing are not saved

I second Geoff Hayes's question about where you're creating these files. Are you putting them in a directory created using a Tem...

24 hours ago | 0

| accepted

Retrieve curve fit coefficients

What "something else" are you planning to do with this fit information? There are a number of post-processing operations you can...

2 days ago | 1

Does Matlab support coding of embedded systems and robotics

Take a look at the Robotics and Autonomous Systems and Embedded Systems sections linked from the Solutions section of the websit...

2 days ago | 0

| accepted

How to save multiple output?

In your code: %{ for i = 1:m [A,x,y]=myfunction(I,vals(i,1), vals(i,2)); end %} is A always going to be the same size? If ...

2 days ago | 1

How to add black isolines for f(x,y) = -1, 0, 1

Use the contour or contour3 functions.

2 days ago | 0

Dealing with Data Structures

Can you create variables named impact_data0, impact_data1, impact_data2, etc.? Yes. Should you do this? The general consensus i...

3 days ago | 0

Warning: Function class has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict

You've created or downloaded a file named class.m that's preventing MATLAB from calling the built-in class function. Identify th...

3 days ago | 1

| accepted

Extracting value from Name-Value pairs using the Name string

test = struct('units', {'degrees_east', 'degrees_north'}, ... 'long_name', {'longitude', 'latitude'}) theNames = {test.lon...

3 days ago | 0

How do I get an Expression to Use the Value of a Variable that was Assigned after the Expression was Defined?

Use subs. syms z f = 2*z z = 4; f g = subs(f)

4 days ago | 0

| accepted

What is the equivalent of mmult of excel in matlab?

The * operator performs matrix multiplication, but in order for that operation to be mathematically defined you need to transpos...

7 days ago | 1

| accepted

Cut a graph ?

If the data to be plotted includes NaN, that point will not be plotted. x = 1:5; y = [1 2 NaN 1 2]; plot(x, y) axis([0 6 0 3...

7 days ago | 0

| accepted

Histogram occurences per age problem

Use the histogram function instead of histc.

8 days ago | 1

| accepted

How to assign strings and numbers to elements of the same matrix?

Do you need your data stored with mixed-type columns or would mixed-type rows work? If the latter, consider a table array. Resu...

8 days ago | 0

Passing additional argument into objconstr

Adapting the example from the documentation page for packfcn: ros = @(x, k) k*(x(2) - x(1)^2)^2 + (1 - x(1))^2; % Added a param...

9 days ago | 0

Use of Genetic Algorithm feature for optimization of technical design

What signature does the documentation page for the ga function state your nonlinear constraint function must have? [How many inp...

9 days ago | 1

Transpose pivot reshape a MATLAB table from a cross-section wide 'row format' to a panel-data long 'column' format

I'm not sure where those 4444 values came from in your second T variable, but I think what you want is to stack your table data....

9 days ago | 0

How to determine polynomial coeffisient of N x M matrix instead Of 1 x N or N x 1?

Do you want M polynomials, one per row, or do you want one polynomial for all your data? If the latter, just columnize your data...

9 days ago | 0

| accepted

Is there a better way to use cellfun with arguments? and is it better than for-loop?

A = {1:10, magic(5), @sin} cellfun(@(x) size(x, 1), A)

9 days ago | 1

[beginner] How do you plot two vectors of diffrent length?

I believe your suspicion about whether the commas should be periods is correct. MATLAB uses the convention that the decimal sepa...

9 days ago | 0

How do I create array of a function with for loop?

I have a in total 42 of 424x412 doubles Can you do this? Yes. Should you do this? The general consensus is no. Rather than ha...

10 days ago | 1

Setting a plot's x-axis by units and not finer data points?

When you call plot with one data input, the indices of the elements in the vector are used as the X coordinates. plot((1:10).^2...

10 days ago | 0

Use of geoglobe in MATLAB R2017a

As stated on the documentation page for the geoglobe function, it was introduced in release R2020a. It did not exist in release ...

10 days ago | 0

I am trying to solve 3 simultaneous ODE's. Which method to use?

This documentation page includes two examples, the second of which you can use as a model for your code to solve a system of dif...

11 days ago | 1

creating variables with a for loop

Can you define variables with numbered names like X1, X2, X3, ... or whose names are given by a list of strings? Yes. Should y...

14 days ago | 0

Which toolboxes are recommended for civil engineering?

This question is really quite general and so it's difficult to give a definitive answer. If you open the Solutions page linked a...

14 days ago | 0

Efficient ODE with function handles

Does f_function expect to be called with two input arguments or three? x = [1; 2; 3]; y = [4; 5; 6]; value1 = min([x, y], 4) ...

14 days ago | 0

Converting hh:mm:ss into seconds

t='14:35:59.812'; F = 'hh:mm:ss.SSS'; du = duration(t, 'InputFormat', F, 'Format', F) format longg % To make s look nicer s ...

16 days ago | 0

How to average first two dimension of 3D array/matrix?

The ability to specify a vector of dimensions over which to sum an array was introduced in release R2018b as stated in the Relea...

16 days ago | 1