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,353 Answers

File Exchange

5 Files

Cody

0 Problems
6 Solutions

RANK
13
of 300,674

REPUTATION
18,316

CONTRIBUTIONS
0 Questions
8,353 Answers

ANSWER ACCEPTANCE
0.00%

VOTES RECEIVED
3,274

RANK
530 of 21,041

REPUTATION
3,296

AVERAGE RATING
3.40

CONTRIBUTIONS
5 Files

DOWNLOADS
6

ALL TIME DOWNLOADS
32235

RANK
51,948
of 170,032

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
Returning line before after searching for pattern
A is a logical array with the same number of rows as the string array readfile. So if you remove/ignore the first element of A, ...

21 hours ago | 0

| accepted

Answered
Why does having only one row in table, break dot indexing?
Let's make some sample data. C = cell(10, 1); actualHeights = zeros(size(C)); for k = 1:height(C) h = randi(10); ac...

2 days ago | 0

Answered
Simulink closes without any warning, message, error or reason **Tons of hours of work lost every single day**
Searching the Bug Reports for Simulink in release R2024b for the word "crash" finds 42 hits. I recommend reading through the sum...

2 days ago | 0

Answered
go back to previous if condition from an elseif in for loop
I would probably turn your disp calls (which I'm assuming are placeholders for what you're actually doing in those cases) into f...

3 days ago | 0

Answered
Defining a function in one file and using it in a second file
Script files Inside of a script file, all functions defined inside it are local functions. That means they can only be called d...

3 days ago | 0

Answered
Error getting in.
I'm guessing that you are receiving a licence manager error when you try to start MATLAB. If that's the case, add the license ma...

4 days ago | 0

Answered
Sharpening a 2D histogram and finding peaks
You're not plotting a histogram using histogram or histogram2, but did you create the data that you passed into surf using one o...

9 days ago | 0

Answered
How can I get the license key?
If you're trying to use your educational institution's license, ask whoever maintains the organization's software licenses (prob...

10 days ago | 1

Answered
Is There a Way to Create a Sequence of Polar Plots in a Tiled Layout Using arrayfun with an Anonymous Function?
Using just an anonymous function alone? No, I don't think so. Probably the easiest way to do what you want is to define one gene...

11 days ago | 0

Answered
It mandatorily requires “pretrained deep network for automated labeling” Task : How do we create a PreTrained Deep Network with the existing data?
What is "it" in this case? If it's a specific documentation page or example that you're referring to, please add a comment linki...

13 days ago | 0

Answered
First value of an array does not display with a decimal
The disp function doesn't let you control the format with which the values are displayed. Instead, use either fprintf or (what I...

13 days ago | 1

| accepted

Answered
How to compute the middle part of a sorted eigenvalues of an extremely large sparse matrix
With the default options, eigs computes the largest eigenvalues and eigenvectors. But depending on what you specify as the sigma...

14 days ago | 1

Answered
how i can reprenst in matlab?
It's not clear to me what the question is, unless it's "How can I populate a vector with multiple copies of numbers without typi...

15 days ago | 0

| accepted

Answered
Anyway to make this more concise?
Rather than depending on users typing in the strings exactly as you're looking for them, if you know what variables will be in y...

17 days ago | 0

Answered
Add folder and subfolder to project path
From the documentation page's Version History section: "Starting in R2025a, the addPath function supports adding multiple folder...

22 days ago | 1

| accepted

Answered
whats wrong in this function?
Let's look at the signature of your function (with some line breaks added to avoid scrolling.) function [massetetthet_ZnBr2,mas...

26 days ago | 1

Answered
Include variable value when throwing exception
Why not just build up the appropriate string containing the message with the information you want it to include then call error ...

28 days ago | 0

Answered
In how many functions using the global variable, can a global variable be declared?
A variable in the global workspace is accessible from any workspace where it is declared as global. You may think this is good, ...

1 month ago | 1

Answered
ldpc_dataFormation function missing in documentation
Use the Copy Command button on that example documentation page, then run that command in MATLAB. Assuming you have the toolbox t...

1 month ago | 0

| accepted

Answered
Error using filterDesigner (line 85) Value must be a handle. macOS R2025b
Can you show us the output of these commands? which -all sigtools.fdatool which -all fdatool I suspect you've installed somet...

1 month ago | 0

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

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

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

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

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

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

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

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

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

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

2 months ago | 0

Load more