Community Profile

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.

All

Content Feed

View by

How can I calculate the cumulative sum of this file?
"calculate the cumulative" what of the file? Cumulative sum? cumsum. Cumulative product? cumprod. Cumulative minimum or maxim...

2 hours ago | 0

Generating random numbers with a different probabilities
If you know the probabilities you want each number to have you could use discretize. For instance if I want to generate numbers ...

3 hours ago | 0

Convert epoch to human readable data and time
What's the unit of time a value of 1 in your epochtime represents? Seconds, microseconds, nanoseconds, etc.? t = 6000; start =...

5 hours ago | 0

What is this block called in MATLAB R2021a
In the context of the model in which it's used, what's its purpose? If you know what it's intended to do you could search in the...

7 hours ago | 0

creating a loop of a 158 component vector
As shown in the "Decrement Values" example on the documentation page for the for keyword, you can specify a vector with start, i...

1 day ago | 0

Storing small numbers and logarithms.
How large is "very large"? Can you perform the calculation symbolically (by converting a and b into sym values before trying to ...

1 day ago | 1

How can I stop ode45 when certain derivative is negative?
Your events function can return a vector of values and detect an event if any of the elements of that vector crosses zero. See t...

1 day ago | 0

YOLOV3 example missing functions
Open the example in MATLAB (either MATLAB Online or desktop MATLAB). The directory that contains the example .mlx file also cont...

2 days ago | 0

| accepted

Generating Geometry Patterns at Scale
Consider using polyshape and the convenience function nsidedpoly. h = nsidedpoly(6, 'Center', [10 10], 'Radius', 5); plot(h) ...

3 days ago | 0

Symmetric/Centered Moving Average
Take a look at the movmean function.

3 days ago | 0

| accepted

How can i get the double % to highlight a section again?
See this Answers post.

3 days ago | 0

| accepted

what does this mean in matlab code????
If for whatever reason you cannot type the | character (which on my QWERTY keyboard is Shift plus the key to the far right of th...

4 days ago | 1

Is it possible to code solver tool in Excel as a Matlab code?
If you have Optimization Toolbox take a look at this documentation page and the pages to which the first section link.

4 days ago | 0

Why is MATLAB not recognizing my variables in my switch block?
First, you probably want to have an otherwise block in your switch / case to handle the case where a user enters something other...

5 days ago | 1

Make an app from matlab app designer a executable .
Use the MATLAB Compiler product to create and deploy a web app.

5 days ago | 0

How can I adjust the patch function to display correctly?
I'm not sure patch is the right tool for this job. Have you tried using geoplot or perhaps patchm from Mapping Toolbox instead?

5 days ago | 0

convert value from radian form to degree form
See the deg2rad function.

6 days ago | 0

| accepted

Can log in on MathWorks website, cant in the MATLAB app on windows
Try renaming your flip.m script file located in: C:\Users\jonat\OneDrive\Documents\MATLAB\flip.m Its existence prevents MATLAB...

6 days ago | 0

list of users for specyfic license

7 days ago | 0

Error: Maximum recursion limit of 500 reached.
Do not call ode45 with 'Model' as the first input from within Model.m itself. Move the ode45 call (and the code necessary to cre...

8 days ago | 1

Make num2str in engineering format
If you're using release R2021a or later I would use formattedDisplayText instead of evalc. wcutoff = 5.2e10; t = formattedDisp...

9 days ago | 1

Example command not available
Do you have Communications Toolbox installed? Check using the ver function. ver comm

9 days ago | 0

How to find the changing point in figure?
Take a look at the ischange function.

13 days ago | 0

Why can't I open a file on MacBook?
I recommend not creating a variable named path, as path already has a meaning in MATLAB. See doc path for more information on th...

14 days ago | 1

| accepted

Custom defined data class not recognized
That class is part of the fwpck package. You will need to call it using the package name or import the package. y = fwpck.Globa...

14 days ago | 0

| accepted

I am having error using ode45 with Inputs must be floats, namely single or double
[r,eps_bar] = ode45(@(r,eps_bar)@(omega) (eps(r).(omega)-eps_bar).*(eps_bar+2.*eps(r).(omega))./(r.*eps(r).(omega)),tspan,1,opts...

14 days ago | 0

Computational speed when the array dimension is large
Have you tried a stiffer solver? See this post on Cleve Moler's blog for more information about stiffness.

16 days ago | 0

license for my app

16 days ago | 0