photo

Steven Lord

MathWorks

Last seen: Today Active since 2002

Followers: 10   Following: 0

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

All
MATLAB Answers

0 Questions
8,333 Answers

File Exchange

5 Files

Cody

0 Problems
6 Solutions

RANK
13
of 300,331

REPUTATION
18,284

CONTRIBUTIONS
0 Questions
8,333 Answers

ANSWER ACCEPTANCE
0.00%

VOTES RECEIVED
3,268

RANK
528 of 20,920

REPUTATION
3,296

AVERAGE RATING
3.40

CONTRIBUTIONS
5 Files

DOWNLOADS
5

ALL TIME DOWNLOADS
32232

RANK
50,456
of 168,124

CONTRIBUTIONS
0 Problems
6 Solutions

SCORE
70

NUMBER OF BADGES
1

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Treasure Hunt Participant
  • Scavenger Finisher
  • Most Accepted 2024
  • Thankful Level 5
  • Solver
  • Personal Best Downloads Level 2
  • Editor's Pick
  • Master
  • 36 Month Streak
  • 5-Star Galaxy Level 4
  • First Submission
  • Revival Level 3

View badges

Feeds

Answered
Why do Nan values greatly increase the cost of sparse multiplication
Let's look at a sample sparse matrix. S = sprand(1e4, 1e4, 0.1); status = @(M) fprintf("The matrix has %d non-zero elements, a...

2 days ago | 0

Answered
How can I execute a function if it exist, otherwise use a custom function?
Are you trying to use MATLAB Compiler or MATLAB Coder? If the former, you should know that any code that you want the compiled a...

3 days ago | 0

Answered
How to multiply different size arrays and multiply each element by each element?
I recommend using the combinations function to generate the combinations of values, then using variables from the table returned...

8 days ago | 1

Answered
representation of a cell array in 2025b
If you have cells or structs inside of cells (as I suspect is the case in the original poster's question) you could use the cell...

10 days ago | 0

Answered
Will the old-style class definitions be supported in future version of Matlab?
Looking at the Release Notes for MATLAB for release R2025a, there are two relevant notes. One states that classes defined using ...

10 days ago | 0

Answered
Curve Fitting Toolbox Error: This expression has no coefficients or non-scalar coefficients.
The function 57857*((sin(5*30e-6*(sin(x)/450e-9)*pi))/sin(30e-6*(sin(x)/450e-9)*pi))^2*sinc((sin(x)/450e-9)*pi*5e-6)^2 e.g. is n...

11 days ago | 0

Answered
How do I change the size of xq while using the interp1 function as supervision?
You're interpolating the spectra data at temperatures in xq. Based on what you showed of size(controle) I assume xq has 326 elem...

17 days ago | 0

| accepted

Answered
I want to avoid fractions in my answer to the null space
Use the numden and lcm functions to identify what you need to multiply the fractions by to make them whole numbers.

21 days ago | 1

Answered
Saving a grid of lines to be recalled using findobj and assigning to an app property
Just because the handles exist doesn't mean they're valid. They can hold handles to deleted objects. Let's make a figure handle....

24 days ago | 0

Answered
sine wave plot
If you're using release R2018b or later, rather than computing sin(pi*something), I recommend using the sinpi function (and ther...

1 month ago | 0

Answered
One plot line is messing up the two other plot lines/points
In your second plot, the Y axis limits are 0 and 4. Your data points for your first and third lines all have Y coordinates in th...

1 month ago | 1

Answered
[coeffA,scoreA,latentA] = pca(X);
If you truly do not need the second output (but do need the first and third) tell MATLAB to ignore the second output when you ca...

1 month ago | 0

| accepted

Answered
run function from command line
I'm not 100% sure this option was available in releases R2017a or R2017b, but I'm pretty sure it was. Use the -sd startup option...

1 month ago | 0

Answered
Class Unexpected Behaviour with Properties and Type Casting
Shouldn't this code produce at least a runtime error when meh is assigned to a cell object instead of forcing this automatic typ...

1 month ago | 1

| accepted

Answered
How can I add a backup an option, addSaveCallback, to save a timestamped version of my file, to the MATLAB editor?
Do the Editor/Debugger Saving settings not satisfy your needs?

2 months ago | 0

Answered
I have a code but am unable to use if conditions with matrix value
You haven't told us what you're doing or why Star Strider's suggestion didn't work for your application, so we can't offer speci...

2 months ago | 0

Answered
MATLAB R2025a on Windows 11 [background open after closed]
If the processes you're seeing remaining open are matlabwindowhelper processes, see Bug Report 3724070. Follow the bug report an...

2 months ago | 0

Answered
Why do I receive MathWorks Licensing Error 5?
I recommend checking with the administrators of your license to ensure that Simscape Multibody is included in your license and t...

2 months ago | 0

| accepted

Answered
Warning Suppression Request Ignored MATLAB R2017b
Try running the following command then executing the code or instructions that issue the warning. dbstop if warning Once MATLA...

2 months ago | 0

Answered
A more efficient way to do this calculation
Take a look at the discretize function.

2 months ago | 2

Answered
Do you have a HECVAT & VPAT for the MATLAB software?
If you go to the end of this page and click on Trust Center, you can download the VPAT for MATLAB, Simulink, MATLAB Online, and/...

2 months ago | 0

Answered
Which toolbox includes hPre6GCPU?
The Appendix section at the end of that example states that hPre6GCPU is a helper function. Copy the command to open the example...

2 months ago | 1

| accepted

Answered
When I use MATLAB's export image feature, I name the file "untietled" and all other names, MATLAB crashes and automatically quits
If you look at the crash log file, do you see a reference to graphics_context.dll in it? If so, try updating to release R2023a U...

2 months ago | 0

Answered
How can I distribute a single sprintf input to multiple formatting operators?
You can specify which of the data inputs you want each "section" of the format specifier input you want to use by adding a numbe...

2 months ago | 0

| accepted

Answered
Does MATLAB work on any Cloud Computing Service?
It is possible to use MATLAB in the cloud, as described on this page on the MathWorks website. If the information on the Resour...

2 months ago | 0

Answered
Enforcing naming conventions with a custom codeAnalyzerConfiguration.json
Compare the documentation page you linked (which is for the current release, which right now is release R2025a) with the version...

2 months ago | 2

| accepted

Answered
Compatability of runtime engine with matlab gui application
In general, you probably don't want to use the path function with an input argument.[*] That changes the MATLAB search path to w...

2 months ago | 0

| accepted

Answered
reading CSV files with multiple rows of strings and multiple rows of floats
All the data in a variable in a table must be the same type. You can't have one where the first four rows are text and the next ...

2 months ago | 0

Answered
Use string to define variable
Can you dynamically create variables with numbered names like x1, x2, x3, etc.? Yes. Should you do this? The general consensus ...

3 months ago | 1

Answered
Documented name-value argument not recognized
The problem is that the documentation of publish is wrong. The correct name-value argument is outputFolder. The problem is that...

3 months ago | 0

| accepted

Load more