
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
13
of 284,797
REPUTATION
16,582
CONTRIBUTIONS
0 Questions
7,655 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
2,881
RANK
506 of 19,236
REPUTATION
3,280
AVERAGE RATING
3.40
CONTRIBUTIONS
5 Files
DOWNLOADS
25
ALL TIME DOWNLOADS
32073
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
How easy is it to give a Matlab toolbox as a Christmas present?
I'm not certain if gift vouchers are available. I recommend you contact the Sales department directly using this link to ask thi...
3 hours ago | 0
how can i get matlab code for this paper
If you have a specific question about where you're having difficulty implementing the code for this paper, show us the code you'...
5 hours ago | 0
How do I index a variable based on the outcome of a logical expression (e.g if x +y = 2 then variable 2 is indexed)
Here's an example with one die. You can imagine how much more code than this you'd have to use if you wanted to count the freque...
1 day ago | 0
Why is the preprocessor check #if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) ) being generated in private.h?
From the Wikipedia page for C data types: "The minimum size for char is 8 bits, the minimum size for short and int is 16 bits, ...
1 day ago | 0
Error using linprog (line 369)
Please send your code and data to Technical Support directly using this link so the development staff can determine the cause of...
1 day ago | 0
Incorrect number or types of inputs or outputs for custom function.
Rather than making a 0-by-0 intL array and then immediately expanding it to be (potentially much) larger, why not start off assi...
1 day ago | 0
Path(pathdef) Error
Does your Run_Script script file define a variable named path on line 1, right before it tries to call the path function on line...
2 days ago | 0
How to Add Title to Legend ?
You're using a release of MATLAB that's more than ten years old. MATLAB has changed quite a bit during that decade, including a ...
2 days ago | 0
Function works fine in MATLAB, however, when I get to MATLAB coder, it fails with error does not terminate due to an infinite loop
Rather than checking if s is a char vector or has positive length, if you want to stop when the file has been read in I'd use fe...
2 days ago | 0
| accepted
Adding zeros to a column vector to match a larger column vector
If you're using release R2023b or later, you could use the paddata function. Let's create some sample data: % I have x where th...
3 days ago | 0
Creating a VAT Calculator in MATLAB
Is there a specific reason you're trying to create the app as a script file yourself? I'd consider using App Designer. If you ha...
3 days ago | 0
For loop problem for matrix
There are two values which are changing VGPL_xi and values that depend on K and VGPL_xi. Ah. So you're trying to figure out how...
7 days ago | 0
How to add zeros to the end of an array
If you're using release R2023b or later, you could use paddata or resize to do this. A=[ 1 5 3 8 9 4 7 6 5 2 ]; B=[ 5 2 3 9 7 ...
8 days ago | 0
Why am I getting a red message when trying to run this code.
In the future, please don't post a picture of your code, post your code itself (formatted using the first button of the Code sec...
8 days ago | 0
Issue with delete(obj)
Rather than creating and deleting a scatter plot over and over again, I think either using the comet function (if you have all t...
8 days ago | 0
Direct calculations on tables - elementwise mean of n-tables
Is there a simpler way? Yes. If you know that your data cell array is not empty, just use a for loop. n = numel(data); if n >...
8 days ago | 0
MCC/deploytool and excluded class
From the documentation "MATLAB Runtime only works on MATLAB code that was encrypted when the deployable archive was built. Any f...
8 days ago | 0
Matlab on two computers, one at work and one in laptop
It depends on the terms of your license. Check with your license adminstrator (if you're using your company's or educational ins...
8 days ago | 0
Hi When I run my code I got an error message "Invalid expression. Check for missing or extra characters" for my if loop. I am not sure why. Someone there can help me?
u1 = @(x, y, t) 0 u2 ... = @(x, y, t) 0 % u3 % = @(x, y, t) 0 Don't split the code among multiple lines (as u1), or if you...
8 days ago | 0
Why is dot (".") not considered an operator?
This documentation page lists it in the "Special Characters" section. [To be fair it also lists the colon operator in that table...
9 days ago | 1
Question regarding the calling of cfit coefficients
The way you gave, asking for the a, b, and c properties of the cfit object named fitobject, is one way to get the coefficients. ...
9 days ago | 0
| accepted
Insert zeros in random positions following another zero
You can use repelem to replicate the elements. X = [2 1 0 4 5 0 778 90 0 3 88 0 77 66 0 12 23 0 45 80 0 89 67 0 34 67 0 76 32 0...
9 days ago | 0
| accepted
Find function misbehaves when Indexing into array
%{ if isempty(FindIndex) FindIndex = 125; end %} Rather than assuming that your x array (and your y array) has exactly ...
9 days ago | 1
Webinar link not emailed after registration
If you've checked that your spam filter didn't trap the emails from MathWorks, please contact Customer Service directly using th...
9 days ago | 0
| accepted
Outerjoin: resulting table has repeated rows and has erased some data
Rather than storing your data as tables with one variable containing serial date numbers, consider converting those serial date ...
10 days ago | 0
Using output of the fit function in further calculations
If all you want to do is evaluate the surface fit there's no need to break it into its components parts and re-assemble it. I'll...
10 days ago | 0
| accepted
Locally suppress Code Analyzer warnings?
See the "Adjust Code Analyzer Message Indicators and Messages" section on this documentation page.
10 days ago | 0
How to make only x-axis invisible (y-axis stays visible)?
This wasn't an option when the question was originally asked, but now you can change the Visible property of the appropriate rul...
10 days ago | 0
Renaming output files so as not to overwrite when name is duplicated
There is a function named matlab.lang.makeUniqueStrings that may be of use.
12 days ago | 0
How do I use Matlab Compiler SDK to create executable for GUI app
I would try writing and deploying a function that opens the app then waits for the app to close before the function returns. Som...
14 days ago | 0