Answered
fitline not displaying correct x values datetime
You probably need to do centreing and scaling with your data, then use datetick to display the dates correctrly — dates = date...

3 years ago | 0

| accepted

Answered
MatLab Multiple graphs in one axis
The easiest option is to use the hold function. Put the different ‘x’ and ‘y’ vectors in one matrix, then plot them x = (9:0.2...

3 years ago | 0

Answered
2d line plot
The patch documentation section on Create Multicolored Line offers one option. The problem with the data is that the temperat...

3 years ago | 0

| accepted

Answered
Detecting Certain Parts of a Specific Signal
Start with the findsignal function. It may be necessary to invert the tall peak to find the inverted version of it.

3 years ago | 0

Answered
Non-homogeneous frecuency in Matlab Mobile measurements
If you are referring to Android Sensors Data Acquisition , probably not. To create a regularly-sampled signal, it would be nece...

3 years ago | 0

Answered
Error bars centered at one bar in multi-bar plot
It would help to have your data matrices. Use XEndPoints and YEndPoints to specify the ends of the bars. y = rand(5,4); err...

3 years ago | 2

| accepted

Answered
fillmissing function with makima method
Thje 'makima' method is likely best for filling NaN gaps in varying data. Yours appear to be relatively constant, other than fo...

3 years ago | 0

| accepted

Answered
calculating the average of a column of a csv file with specified steps and saving it in a new csv file
This was a bit more involved than I thought it would be — T1 = readtable('Data_1min.csv', 'VariableNamingRule','preserve') ...

3 years ago | 0

Answered
3D plot in polar coordinates
This took a while to get working correctly, and takes about 500 seconds to run, so I will post the code here slthough not the pl...

3 years ago | 0

| accepted

Answered
Need help to removing motion artifact from ECG signal
Try something like this — LD = load('test10_00wm.mat') type('ECG.m') % I was hoping Tha...

3 years ago | 0

| accepted

Answered
reference a Mathworks Algorithm found in the forum
The URL of the particular post would be my choice. Right-click on the ‘chain’ (‘Link’ or ‘Hyperlink’) icon to copy it. For e...

3 years ago | 1

| accepted

Answered
Deriving acceleration from velocity equation
The gradient function could be helpful. EDIT — (20 May 2023 at 12:46) If this is symbolic, of course, just take the deriva...

3 years ago | 0

Answered
Can't figure out these two errors, if someone can help I'll appreciate it
The problem is that the error message does not say what the particular error is. Reproducing that line with various definitions...

3 years ago | 0

| accepted

Answered
Error using ellipord?
The code appears to work correctly when I run it (in R2023a), however I don’t have the signal so the load call throws an error. ...

3 years ago | 0

Answered
non-numerical answer for solving complex non-linear equation
You define all the variables numerically, however your code then declares them as symbolic. The easy solution is simply to pu...

3 years ago | 0

| accepted

Answered
How do I exclude certain columns from rmmissing rmoutliers?
I would treat those as two separate operations. First, remove the missing data on the entire matrix, not only selectyed colum...

3 years ago | 0

| accepted

Answered
Problem finding "valleys" in signal
I prefer using 'MinPeakProminence' instead of 'MinPeakHeight' since that is usually more robust. t = linspace(0, 10); y = 0....

3 years ago | 0

Answered
How to read this data with the headers text
If you have R2013b or later, use readtable. It behaviour has changed a bit over the years, however it should still work with ...

3 years ago | 0

| accepted

Answered
Problem with direct calculation on table with std and "omitnan"
Prehaps varfun? Example — load patients T = table(Age,Height,Weight,Systolic,Diastolic) S = varfun(@(x)std(x,'omitnan'...

3 years ago | 0

| accepted

Answered
How to calculate mean of standard deviation (mean deviation) in a table
The 'mean_rate' variable does not exist in ‘T’. Giving groupsummary the correct variable names (or at least variable names th...

3 years ago | 0

Answered
Relation or Pattern between curves
The plot appears to be incomplete. What do the curves look like between 0 (or whatever the minimum independent value is) and ...

3 years ago | 1

| accepted

Answered
Automate the length of samples in the envelope function to get the optimal peak envelope from various signals
Consider first using either findpeaks or islocalmax with find, and then calculate the appropriate distances (using min, max, mea...

3 years ago | 1

| accepted

Answered
Fitting real data curve to a homogeneous diff
I am not certain from your description what you want to do. However if you have the Signal Processing Toolbox, the resample fun...

3 years ago | 1

| accepted

Answered
Trouble using Bode(sys)
You could have a path problem. Run these: restoredefaultpath rehash toolboxcache from a script or your Command Window to...

3 years ago | 1

Answered
solving 1D drift diffusion model for a semiconductor using FDTD. Can anyone rectify this error.
In the ‘Jp’ and ‘Jn’ calculations, the relevant ‘n’ vectors are (98x1) while ‘E’ is(99x1). That appears to be the problem. I...

3 years ago | 0

| accepted

Answered
Why my code find a second intersection of curve with line and not the first?
See if the lines oif copde I added do what you want — %There are input constants cP=0.05; cN=0.05; cMg=0.005; logb0=2.88; ...

3 years ago | 0

| accepted

Answered
read and convert binary file
It would help to have the file. That aside, the textscan function is likely the easiest way to read it — str = 'AA 08 00 00...

3 years ago | 0

| accepted

Answered
I want to color for $\eta<1.054288$ by blue and red for, $\eta>1.054288$ of a curve from data
This is a bit more involved than it might otherwise seem, because simply using logical indexing to define the red line creates a...

3 years ago | 0

| accepted

Answered
Find the row position corresponding to a value
I assume that ‘gyro_x’ and ‘gyro_y’ contain floating-point numbers, so that explains the error. Indexing into ‘gyro_x’ with ‘g...

3 years ago | 0

Answered
Peaks of a function
This is relatively straightforward — F1 = openfig('Plot.fig', 'visible'); Lines = findobj(F1, 'Type','Line'); t = Lines.XD...

3 years ago | 0

Load more