# Steven Lord

### MathWorks

Last seen: Today 2002년부터 활동

Followers: 1   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.

All

배지 보기

#### Feeds

보기 기준

답변 있음
Combing Date and Time Variables into ONE DateTime Vector
So you have a datetime array and a duration array? n = 10; dt = datetime(2024, 6, randi(30, n, 1)) du = duration(randi(24, n,...

대략 13시간 전 | 0

답변 있음
make vectors same length using min function
x = [2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016]; y = [0, 0.05, 0.1, 0.15, 0.2]; a = [2008, 2009,...

대략 13시간 전 | 0

답변 있음
Error: Children may only be set to a permutation of itself
In programmatic code, ideally you should use a specific axes handle rather than trusting that gca returns the axes you think it ...

대략 15시간 전 | 1

| 수락됨

답변 있음
Join Subgraphs into a new Graph
G1 = graph(randi(10, 20, 1), randi(10, 20, 1)); G2 = graph(randi(10, 20, 1), randi(10, 20, 1)); Here I have two random graphs,...

대략 16시간 전 | 1

답변 있음
Find value of large number
Use Symbolic Math Toolbox. Define your constants symbolically. % Define the constants B_2 = sym(0.18525); H = sym('3000175332...

대략 17시간 전 | 0

답변 있음
Working with modified code -2024A
If your system of ODEs is taking a long time, it may be stiff. Try using one of the stiffer solvers. Alternately you could try ...

1일 전 | 0

| 수락됨

답변 있음
How to Create Slicing Number of 2D plots in matlab
Looking at this documentation page, I think what you want is slice.

3일 전 | 0

답변 있음
Calculate mean of all variables that have a mean
Instead of calling varfun twice as the answer posted by @Arun does, call it once with the InputVariables name-value argument. Th...

4일 전 | 1

| 수락됨

답변 있음
Assigning a line plot object to a global property doesn't retain it after the object is deleted
All of the handles to the line object (which is a handle object) are references to the same thing on the screen. If you delete()...

4일 전 | 2

| 수락됨

답변 있음
No se como crear un 4x1 polyshape with 3 properties
What is the data type and size of the cborders variable used on line 19 of your untitled2.m file? You could add this command imm...

4일 전 | 0

답변 있음
How to extract latitude and longitudes from a table given the timestamp range?
Use a timerange object as the row index into your timetable. Time = datetime({'12/18/2015 08:00:00';'12/18/2015 10:00:0';'12/18...

5일 전 | 0

답변 있음
How can I get script's location when running one section of a script?
Rather than depending on what is the current directory when running the code (which is subject to change when you're running the...

5일 전 | 1

답변 있음
Time format is changed to decimal when calling the time data from excel.
In matlab, when i read a time data (hh:mm:ss AM/PM) from excel, How are you reading the data from the Microsoft Excel spreadshe...

5일 전 | 0

답변 있음
Does Matlab automatically vectorize for loops?
In general we don't discuss what the JIT does internally as we don't want users to try to code against that always-moving target...

6일 전 | 2

답변 있음
Can't run script in namespace directory
You can run a script in a namespace. You need to use the name of the namespace as part of the command, just like you would when ...

6일 전 | 0

답변 있음
3d arrays Matrix multiplication with a vector
This wasn't an option when the question was asked originally, but since release R2020b you can use pagemtimes. Let's make a smal...

6일 전 | 0

답변 있음
Converting Unix Timestamp to Date Time
Use the 'ConvertFrom' option in your datetime call. This tells datetime how to interpret the value you pass into it. I think you...

6일 전 | 0

| 수락됨

답변 있음
Incosistency Precision Value (decimal double) When using strcmpi/contains
If you're trying to determine if one number is contained inside another array of numbers, converting them to strings then using ...

7일 전 | 1

답변 있음
Passing output from a ButtonDownFcn callback function
Callback functions for Handle Graphics objects don't return output arguments. [Where would it return those output arguments to? ...

7일 전 | 0

답변 있음
scope marker to line
The Scope block in a Simulink model will plot the data that is passed into it. If you want the block's plot to show the signal l...

7일 전 | 1

답변 있음
How to count the number of scatter points of each color
Rather than creating one scatter plot for each individual point, I'd use that loop to create a vector of data that indicates in ...

8일 전 | 1

답변 있음
is matlab automatically updating xlim and ylim?
If you want to prevent MATLAB from automatically updating the axes limits when you add new data to the axes, set the XLimMode, Y...

8일 전 | 0

답변 있음
intarpulation on a sin wall
Just based on the code you showed, the main suggestion I have is not to recreate the scatteredInterpolant object every time. Jus...

11일 전 | 0

| 수락됨

답변 있음
Unexpected prompt characters on command line output
Rather than piping the contents of the file to MATLAB, do you see this same behavior if you use the -batch startup option listed...

11일 전 | 1

| 수락됨

답변 있음
Does fread use cast when reading non-integer byte data
MATLAB doesn't have a 14-bit integer type. The closest larger type is the signed 16-bit integer type int16. From the fread docum...

12일 전 | 0

| 수락됨

답변 있음
is there way to convert this python code to matlab code? how can i convert python code to matlab? this is the code that I want to convert:
Do you need to convert the code or do you just need to run the code? If the latter, see this section of the documentation.

13일 전 | 0

답변 있음
Average Calculation and Array in For Loop
When i is equal to 1, attempting to index into m with i-1 (otherwise known as 0) as an index would error if the short-circuit &&...

13일 전 | 0

답변 있음
Still waiting for my order to be processed

13일 전 | 1

답변 있음
Flipping Sign provide wrong information and Answers
How exactly does this reordering "change the meaning of the equation"? The derivative of with respect to is . In this case, x ...

14일 전 | 2

| 수락됨

답변 있음
Find Number of Elements in an Array
Yet another way to do this: A = ['KM'; 'KL'; 'MN'; 'KM'; 'MM'; 'KL']; [counts, values] = histcounts(categorical(cellstr(A)))

14일 전 | 0