Answered
how to sort first column of matrix of numbers by shifting the rows?
Use sortrows.

7 years ago | 0

| accepted

Answered
"insfilter" inbuilt function error in Matlab 2018b
As Jan suspected, the insfilter function has additional capabilities in release R2019a (the current release.) The online documen...

7 years ago | 0

Answered
Not enough input arguments?
Your main function calls broyden with a seven element vector as its first input and a handle to the F function as its second inp...

7 years ago | 0

| accepted

Answered
loop indexing length of non zeroes
You can use the ischange function to identify abrupt changes in your data (the jump from 0 to 10 and the drop from 10 back down ...

7 years ago | 0

Answered
Solving two differential equations using ode45
Let v = [x; x'; y; y']. This means v' = [x'; x''; y'; y'']. Can you express x' in terms of some of the elements of v? Sure, it'...

7 years ago | 1

Answered
Plot datetime range from table
If you stored your data in a timetable you could use the timerange function to select only rows of your timetable whose RowTimes...

7 years ago | 1

Answered
How to display constant with caption in separate window
Do you want to display a small dialog box with the text? If so use the msgbox or uialert functions.

7 years ago | 0

Answered
Does anyone understand how ode113 can throw multiple events when the isterminal flag is set in the event handler?
Not being able to see any of the code is going to make this difficult if not impossible to answer. As a guess, does your events ...

7 years ago | 0

Answered
ODE45 to solve for velocity & plot velocities v frequencies?
See the "Systems of ODEs" section on this documentation page for how to write your ODE function. Then use that in a call to ode4...

7 years ago | 0

Answered
Error Using the 'all' input argument with prctile function
That functionality was introduced in release R2018b as stated in the Release Notes.

7 years ago | 0

| accepted

Answered
Averaging values in column 2 if column 1 falls within a certain range
I would use groupsummary specifying the groupbins input as either a list of bin edges or (if you can convert your time data to a...

7 years ago | 0

Answered
"Subscript indices must either be real positive integers or logicals". What does this mean?
Rename or delete the variable you've created named mean that's preventing MATLAB from calling the mean function.

7 years ago | 1

Answered
Inconsistent Dates in Time Series
If possible use datetime instead of datenum. Let's look at two sample dates in different formats. Dates = {'27-Jun-19', '13.04....

7 years ago | 1

| accepted

Answered
Old versions of User's Guide
Would citing the webpage containing the archived documentation for a specific function or topic be sufficient? If so refer to th...

7 years ago | 0

| accepted

Answered
Getting activate software license error
What happened when you clicked on the link to "this Support Article" in the error dialog? Did you experience a problem when exec...

7 years ago | 0

Answered
Generated code that mulitples previous number
Use the cumprod function. [Don't make individually numbered variables, store them as elements of one vector.]

7 years ago | 0

Answered
integral2 results in differnt values with a constant out and inside the integration
Are you sure you're running the code you think you are? The code open in the Editor is in a file named GP but the command you ra...

7 years ago | 0

Answered
How to plot 4 nodes in a weighted digraph as a square?
None of the provided layout functions allow you to fix the relative positions of a set of four nodes like this. You could use l...

7 years ago | 1

| accepted

Answered
NaN generated as output
Set an error breakpoint to force MATLAB to enter debug mode as soon as a NaN or Inf value is generated. Then you can see the exa...

7 years ago | 1

Answered
How do you make multiple variable assignments from s struct?
Making variables x1, x2, x3, ... x10 and y1, y2, ... y10 this way is discouraged. If your struct array had 1000 elements, do you...

7 years ago | 1

Answered
Problem with integral() function
Star Strider is correct. Your f function does not satisfy the requirements imposed upon integrand functions by integral. From th...

7 years ago | 1

| accepted

Answered
Storing functions in classdef files
Another alternative is to define myFunction as a local function in myClass.m but I would also like to avoid that. I want to keep...

7 years ago | 0

Answered
Matlab script for binaries
The easiest solution is probably to contact the person or organization from whom you received the data files and ask them for th...

7 years ago | 0

Answered
Missing 'meanrot' function, despite having both the Sensor Fusion and Tracking and Robotics System Toolbox.
Are you trying to call it on a quaternion object? The documentation page for meanrot in Sensor Fusion and Tracking Toolbox state...

7 years ago | 0

| accepted

Answered
How can I split an image into CMYK components?
This is a bit outside my area of expertise, but I think this documentation page will be of use to you.

7 years ago | 0

Answered
UNABLE TO LOAD A MESSAGE CATALOG
That is not the line as it appears in the fzero.m file that is included in MATLAB in release R2018b. You've modified that comman...

7 years ago | 0

Answered
what causes "Z must be a matrix, not a scalar or vector" in mesh()
The z input to mesh must have at least two rows and two columns. It contains the height of points in the mesh (you can think of ...

7 years ago | 0

Answered
How can I add new images into the MATLAB build-in images?
You shouldn't add, delete, or modify files in a directory under the MATLAB root directory. Put your data files in a different di...

7 years ago | 1

| accepted

Answered
one program has different results in different versions
In release R2018a did you assign a value to the variable i before running that code? When you want to ensure that you're using t...

7 years ago | 2

Answered
How to set datetime for every 9.9156 days?
Do you want a certain number of 9.9156 day intervals from your starting time, or do you want intervals of length 9.9156 days sta...

7 years ago | 1

Load more