photo

Steven Lord

MathWorks

Last seen: Today Active since 2002

Followers: 6   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
  • Treasure Hunt Participant
  • Scavenger Finisher
  • Thankful Level 5
  • Master
  • Solver
  • Personal Best Downloads Level 2
  • Editor's Pick
  • 36 Month Streak
  • 5-Star Galaxy Level 4
  • First Submission
  • Revival Level 3
  • Knowledgeable Level 5

View badges

Feeds

Answered
how would one use logic commands to run separate function files with single-statement intput?
Use the input function with the 's' option to allow the user to type in a string, or you could use uigetfile to let the user sel...

23 hours ago | 1

| accepted

Answered
Spacing correction in documentation.
The spacing looks correct to me in the version of the documentation online to which you linked. Could you state which browser yo...

3 days ago | 0

Answered
Matlab Compiler: Is "userpath" always there and accessible?
I would probably try using the tempdir and/or tempname functions.

3 days ago | 0

Answered
Using accumarray or a similar method for tables
This wasn't an option in the release the original poster was using (the two functions required were released in release R2016b, ...

4 days ago | 1

Answered
Convert a Cell array to a timetable
If you have a set of row vectors in a cell array sampleCell = {1:10, 11:20, 21:30}; first to accomplish your stated goal you n...

4 days ago | 0

| accepted

Answered
Can the random function accommodate the randi function?
I would not position random as replacing the more specific pseudorandom number generation functions. See the Alternative Functio...

8 days ago | 2

| accepted

Answered
Input a variable into a plot title
With the introduction of the string array in release R2016b (and the ability to enclose text data in double quotes to create a s...

9 days ago | 25

| accepted

Answered
I want a Mathworks Polo Shirt
We have now opened the MathWorks Merch Shop. See this blog post for more information.

10 days ago | 1

| accepted

Answered
MATLab promotional items?
We have now opened the MathWorks Merch Shop. See this blog post for more information.

10 days ago | 0

Answered
May I have some Matlab stickers?
We have now opened the MathWorks Merch Shop. See this blog post for more information.

10 days ago | 0

Answered
Wondering if you have any merchandise for sale cause I'd love to look like a part of the MATLAB team 😀
We have now opened the MathWorks Merch Shop. See this blog post for more information.

10 days ago | 2

Answered
How do I get MathWorks Promotional Items or Accessories?
We have now opened the MathWorks Merch Shop. See this blog post for more information.

10 days ago | 0

Answered
how to calculate mape
The mape function was added to MATLAB in release R2022b.

11 days ago | 0

Answered
"platform" error after copying Matlab example to a PC
Comparing the version of the example from release R2023a and the version from the most recent release (as I type this, release R...

11 days ago | 0

| accepted

Answered
when open MATLAB there is such error on command window Error using settings. Too many output arguments. how to solve it
If you've written your own settings.m file, it's likely conflicting with the settings function that's part of MATLAB. Rename you...

12 days ago | 0

Answered
Error "gausswin requires Signal Processing Tool"
The gausswin function is part of Signal Processing Toolbox. Do you have this toolbox installed and licensed? To check if you hav...

12 days ago | 0

Answered
What is wrong with my approach to building this histogram?
From the documentation for the polarhistogram function: "polarhistogram(theta) creates a histogram plot in polar coordinates by ...

12 days ago | 0

Answered
If else statement now hanging up and error message Subscripting into a table using one subscript
If I remember correctly, indexing into a table array using parentheses and one subscript has never been supported. So if that wo...

12 days ago | 0

Answered
Why don't I need a comment character after an (...) ellipsis?
Because that's what the ellipsis is documented to do. From that documentation page: "The ellipsis symbol (...) continues the cur...

16 days ago | 1

| accepted

Answered
Linear indices from colon operator
See sub2ind.

16 days ago | 1

Answered
Multiple outputs from anonymous function
When you define an anonymous function, assign it to one output. f = @(x) svd(x, "econ") % Define f When you call an anonymous ...

17 days ago | 0

Answered
null or NaN entries in image arrays?
If your images are stored in an integer data type, assigning a NaN value into that array will store a 0 in that location. There ...

18 days ago | 0

Answered
Class property described, but not available for serialPort objects?
The Version History section on that documentation page states that there is a "New Tag Property" introduced in release R2024a. S...

18 days ago | 1

| accepted

Answered
Is there a way to define a callback function in Matlab that triggers on runtime errors?
Depending on what exactly you want to clean up, creating an onCleanup object may be of use to you. When this object is destroyed...

21 days ago | 0

Answered
Unit testing of a script that requires a file as input
I would split your script into two pieces: An interface piece that calls input. This piece would not be used during automated t...

22 days ago | 0

Answered
Constructing a string with several index requirements
r2 = [0 30 60 90 120 150 180 210]; ind = 0:numel(r2)-1; result = join("ScanArray(0)(" + ind + ")=" + r2, newl...

22 days ago | 1

Answered
Changing values in an array with unknown dimension
You can use ind2sub as suggested in the answer posted by @Jaynik. But as they wrote that code, they hard-coded the number of dim...

23 days ago | 1

Answered
Mesh error on my Matlab R2024a home edition
You have your own script named strings.m. MathWorks introduced a strings function in release R2016b and this function appears to...

29 days ago | 0

| accepted

Answered
Sparse matrix memory understanding
Please don't post pictures of code. MATLAB Answers can't run pictures of code. rng default Yb = unifrnd(-1, 1, [20000 20000]);...

1 month ago | 0

| accepted

Answered
if/elseif statement with rand() falling between two values
You could either write your code like this: rng default % Allow both code segments to generate the same sequence of random numb...

1 month ago | 0

| accepted

Load more