Community Profile

photo

Steven Lord

MathWorks

Last seen: Today Active since 2002

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

Content Feed

Answered
Error using fclose in MATLAB on Mac: "Invalid file identifier. Use fopen to generate a valid file identifier.
When you call fopen you should call it with two output arguments and check if the first is -1. If it is, that means MATLAB and/o...

ongeveer 14 uur ago | 0

Answered
how do I get my license number?
See this Answers post for instructions on how to determine your license number either from within MATLAB or without having MATLA...

ongeveer 16 uur ago | 0

Answered
I have a code in python and want to convert it in matlab format
Do you need to convert the code or would being able to run the code in MATLAB be sufficient? If the latter, see the documentatio...

ongeveer 16 uur ago | 0

Answered
How to Get one Property of a Structure Array Using a Property on the Same Line
You could do what you described by making a non-scalar struct, each element of which has three fields, each of which has a piece...

1 dag ago | 0

Answered
How to extract numerator and denominator coeficients from polynomial function to array
Do you have separate symbolic expressions for the numerator and denominator or do you have the fraction created by dividing nume...

2 dagen ago | 0

Answered
Error in matlab.internal.doc.csh.DocPageTopicMap/parseTopicPath
Likely you've written your own split.m function that takes precedence over the split function included in MATLAB. What does this...

3 dagen ago | 0

| accepted

Answered
Trouble labeling x and y axis
Do you have a variable named xlabel in the workspace? If you do, you cannot call the xlabel function. Clear or rename the variab...

3 dagen ago | 0

Answered
Maximum recursion limit is reached when I try to open any script
Did you create an open.m file that tries to call open? What does this command show? which -all open

5 dagen ago | 0

Answered
convert a range vector of bin centers to bin edges. Bin Centers and edges are non-uniform
If you know one of the edges of the region you're trying to bin, either the left-most or right-most edge, you can do this. Let's...

7 dagen ago | 0

Answered
How to Fix "Warning: Colon operands must be real scalars" Warning
If you have a small case with which you can reproduce this behavior, could you please send it to Technical Support directly usin...

7 dagen ago | 0

Answered
How to open a directory in Matlab ? Like how do I make the code open a directory ?
I've copied and pasted your code commented out into this message so I can run some sections of code I wrote. This line: %{ % ...

7 dagen ago | 0

Answered
Optimization toolbox installed, but MATLAB says it has been removed
The Optimization Tool interface (optimtool) was removed in release R2021a. The Optimization Toolbox has not been removed. Inste...

8 dagen ago | 0

Answered
how to multiply every single element in a matrix to entire of another matrix?
If you're asking can you dynamically create variables with numbered names like x1, x2, x3, etc.? Yes. Should you do this? The g...

9 dagen ago | 2

Answered
is there a way to make the 0 x and y axis bold?
If you wanted to highlight the X and Y axes by making them cross at the origin, set the XAxisLocation and YAxisLocation properti...

10 dagen ago | 0

Answered
Wrong suming output in simulink r2023A
I don't work with Simulink that much, but I'd check the data types of the various signals in your code. 106 - (-150) The fact ...

10 dagen ago | 0

Answered
Subtracting a Vector from a Scalar-Multiplied Matrix
See this documentation page.

11 dagen ago | 1

| accepted

Answered
Unrecognized method, property, or field 'updateGraph' for class 'app1'.
Your updateGraph function is nested inside your UIAxesButtonDown method. So it's not a method of the class. Move the updateGrap...

12 dagen ago | 0

Answered
Number of counts in matrix
Use histcounts with unique (or uniquetol) to generate the bins. You will need to add one more bin at the end since the last bin ...

13 dagen ago | 0

Answered
Download of addons & update are blocked by company firewall
I am not 100% certain but I believe Add-Ons Manager and the Update installer need to connect to the same servers as the MathWork...

14 dagen ago | 0

Answered
Parse error at x
If all of the code you posted is in the same file, the line where you define the initial value occurs after the end keyword that...

14 dagen ago | 1

Answered
Generate 3D histogram while capping the height of bars
Rather than trying to make hist3 or histogram2 truncate the bins, consider using zlim to control the limits of the Z axis. x = ...

14 dagen ago | 0

Answered
Drawing polygons from vertex coordinates
See the polyshape function. If you're hoping MATLAB will automatically "figure out" what the polygons should be from your scatt...

15 dagen ago | 1

Answered
I can't run a file
Most often I'd expect to see this if you tried to include either a space in the name of your MATLAB program file (not allowed) o...

16 dagen ago | 1

| accepted

Answered
Telling numbers and letters apart
You can use the isstrprop function to determine which characters inside a string are letters. S = ["D56788T5434" "E44G5555" "...

16 dagen ago | 0

| accepted

Answered
For "Characterize Battery Cell for Electric Vehicles" the "copy command" does not lead to the same content as the website example
The version of the example on the website is from the most recent release, which as I type this is release R2024a. You indicated...

17 dagen ago | 1

| accepted

Answered
Information needed to identify your computer is missing or invalid.
Please contact Customer Service directly using this link for help with setting up a license to run on both the classified and un...

17 dagen ago | 0

Answered
matlab program drawing style
Note the scale of the Y axis in your plot. Around t = 0 and t = 0.033 the value of D must get very small in magnitude, leading t...

17 dagen ago | 0

Answered
When running an exe created from a matlab app, where are the variables stored?
The variables are stored in the memory of the executable. Just like you don't need to allocate space for your web browser to sto...

18 dagen ago | 0

| accepted

Answered
Perform Calculations on Data in A Table and Create a New Table
I'd likely turn your Time column into a duration array (using the seconds function) then convert your table into a timetable usi...

18 dagen ago | 0

| accepted

Answered
Parallel computing of "for" loop
Is it the case that the computation of the value for the entity in the second iteration of your loop requires the value of the e...

18 dagen ago | 0

Load more