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

All

#### Content Feed

View by

mex error for path names with spaces
Wrap all the text inputs that can contain spaces in single quotes. disp 'Hello world!' % Equivalent of disp('Hello world!') fp...

etwa 22 Stunden ago | 0

How can i perform indefinite integral in script?
The integral function requires its first input to be a function handle. If you're trying to integrate a numeric set of data, see...

ein Tag ago | 0

How to view the source code of "Delaunay" function?
which -all delaunay We do not distribute the source code for functions that are built into MATLAB like delaunay. If you want to...

2 Tage ago | 0

How to reshape data long version table in MATLAB into wide version table for more in deep repeated measures statistical analysis?
It's not completely clear to me what you want your "wide version" of that table to look like, but I suspect the stack and/or uns...

2 Tage ago | 0

| accepted

who to write this function in another way?
Try using the discretize function.

2 Tage ago | 0

I need a function or equivalent code fgetl, but it is very fast.
Are you sure that fgetl is what's taking the time? Or are you trying to read data one line at a time from a file and storing eac...

3 Tage ago | 0

Separate date and time
dt = datetime('now') % Sample data theTime = timeofday(dt) theDate = dt - theTime % or theDate2 = dateshift(dt, 'start', 'day...

3 Tage ago | 1

Look for string in table and return a number in the same row different column
I'd probably use matches for text data (and the normal relational operators for numeric data.) load patients P = table(LastNam...

3 Tage ago | 0

| accepted

Invalid expression error when I try to introduce new variable.
It's likely (in the absence of nested functions) that the statement on line 407 is not inside any function. The end on line 405 ...

3 Tage ago | 0

Install a toolbox from command line?
I would probably use the silent installation process.

4 Tage ago | 0

Out of memory issue
sz = [196608 4096]; numberOfElements = prod(sz); bytes = 8*numberOfElements; gb = bytes/1024^3 Each subset is 6 GB in size (...

4 Tage ago | 0

change the first digits when ends with 5959
Is there a reason you're starting with string data first rather than using a duration array from the start? d = minutes(0:0.25:...

4 Tage ago | 0

How do I use a user input string to reference a structure that already exists?
I have multiple users with different structure names that need to use this. I want them to be able to input their structure name...

4 Tage ago | 1

| accepted

Issue with numerical integration of two variable function
A = @(x, y)cos(x)+sin(y); B = @(x, y)(A-integral(@(x)A, 0 , 2*pi)); Your expression for B won't work for two reasons. The inte...

4 Tage ago | 0

What is wrong with A = alter(a)?
which -all alter What function are you trying to call? From the tag can I assume you're trying to use Computer Vision Toolbox?...

5 Tage ago | 0

How to place NaN instead of " " / [ ] or empty field by using standardizeMissing?
My guess is that the data that was read into that 7th variable in your table was not numeric data but included data that MATLAB ...

5 Tage ago | 0

| accepted

Is the Abstract keyword needed to make a method abstract?
That is valid syntax, but not for making my_method an Abstract method. What you've written tells MATLAB that my_method is implem...

7 Tage ago | 0

| accepted

Standalone apps cannot run any MATLAB code that was not included in the application at compile-time. From the documentation "MAT...

7 Tage ago | 1

| accepted

Tiny discussion on good practices in object oriented programming (OOP) through a simple example
First, having two classes whose names differ only by casing or by the difference between singular and plural seems likely to cau...

7 Tage ago | 0

Files generated during testing are not saved
I second Geoff Hayes's question about where you're creating these files. Are you putting them in a directory created using a Tem...

8 Tage ago | 0

| accepted

Retrieve curve fit coefficients
What "something else" are you planning to do with this fit information? There are a number of post-processing operations you can...

9 Tage ago | 1

Does Matlab support coding of embedded systems and robotics
Take a look at the Robotics and Autonomous Systems and Embedded Systems sections linked from the Solutions section of the websit...

9 Tage ago | 0

| accepted

How to save multiple output?
In your code: %{ for i = 1:m [A,x,y]=myfunction(I,vals(i,1), vals(i,2)); end %} is A always going to be the same size? If ...

9 Tage ago | 1

How to add black isolines for f(x,y) = -1, 0, 1
Use the contour or contour3 functions.

9 Tage ago | 0

Dealing with Data Structures
Can you create variables named impact_data0, impact_data1, impact_data2, etc.? Yes. Should you do this? The general consensus i...

10 Tage ago | 0

Warning: Function class has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict
You've created or downloaded a file named class.m that's preventing MATLAB from calling the built-in class function. Identify th...

10 Tage ago | 1

| accepted

Extracting value from Name-Value pairs using the Name string
test = struct('units', {'degrees_east', 'degrees_north'}, ... 'long_name', {'longitude', 'latitude'}) theNames = {test.lon...

10 Tage ago | 0

How do I get an Expression to Use the Value of a Variable that was Assigned after the Expression was Defined?
Use subs. syms z f = 2*z z = 4; f g = subs(f)

11 Tage ago | 0

| accepted

What is the equivalent of mmult of excel in matlab?
The * operator performs matrix multiplication, but in order for that operation to be mathematically defined you need to transpos...

14 Tage ago | 1

| accepted