Answered
indicating when data reaches a certain threshold
@Perri Johnson FYI here's a paper on determining ground contact time. https://pubmed.ncbi.nlm.nih.gov/20478742/ Will get back...

4 years ago | 2

Submitted


findpeaksInterp
Plug-in substitute for findpeaks(). Uses parabolas to interpolate to estimate "true" peaks.

4 years ago | 3 downloads |

0.0 / 5
Thumbnail

Answered
Lomb Scargle Periodogram gives me an unexpected peak in the final plot
@Loren99, Lomb-Scargle is not the way I would estimate the spectrum from this data. Lomb-Scargle is great when there is missing...

4 years ago | 2

Answered
Lomb Scargle Periodogram gives me an unexpected peak in the final plot
@Loren99, I would interpolate your signal at 3 second intervals.* Then I would estimate the spectrum of the interpolated signal...

4 years ago | 0

Answered
Simulating earth rotating the sun with eulers method.
@Roble Noor, In your code, init_speed=0; %... init_angular_velocity=1.99e-7; init_speed=0 is wrong. The Earth will be pul...

4 years ago | 1

| accepted

Submitted


Remove Undercuts
Remove undercuts from an x,y data set. This can make it possible to interpolate a data set that otherwise could not be.

4 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
Understanding the DFT of a complex-valued time signal
@Martin Doherty, the FFT of your complex sequence is zero for negative frequencies (i.e. for frequencies above the Nyquist frequ...

4 years ago | 1

Answered
plot3 curve to cylinder with curve as center
@Julius Schroers, See tubeplot.m and RenderLines2Tubes, which uses tubeplot. Both on the Matlab file exchange. Good luck.

4 years ago | 2

| accepted

Answered
how can i remove Baseline wander of an ECG signal by two-stage moving-average filter?
@Naor p, At each point, you replace the original signal with the orignal signal minus the moving average of the signal in that ...

4 years ago | 1

| accepted

Answered
How to eliminate "undercuts" of a 2d curve?
@paul harder, data=load('undercutdata.txt'); xin=data(:,1); yin=data(:,2); xout(1)=xin(1); yout(1)=yin(1); i=2; j=1; whil...

4 years ago | 1

| accepted

Answered
What is IFR filter?
@Crocodile Fever, Why did you answer your own question? I have never heard of an IFR filter. But I have heard of, and I have u...

4 years ago | 0

Answered
How can i draw the phase portrait in my code for 3 non-linear coupled ODEs in 3D plane
@Akhtar Jan, Matlabs quiver3() is very nice for this. "quiver3(X,Y,Z,U,V,W) plots arrows with directional components U, V, and...

4 years ago | 1

| accepted

Answered
plotting time delay system eigenvalues
In the example you have given, I assume is the output. For linear systems, exponentials (including complex exponentials) are ...

4 years ago | 0

| accepted

Answered
How to generate a signal using exponential forier series?
@Arrian Esteki, Please explain your question in more detail. Write a few sentences describing the problem exactly. Also, show w...

4 years ago | 0

Answered
Define the frequency axis for spectrum analyzer - Simulink
@VinĂ­cius CorrĂȘa, The signal used to create the spectrum you showed was probably sampled at 500 MHz. The spectrum of a signal ...

4 years ago | 1

| accepted

Answered
Repeated Measure ANOVA 2x2
@Sara Romanella, The attached script does a two-way ANOVA with repeated measures, as before, and it does a 3-way ANOVA (without...

4 years ago | 0

Answered
Repeated Measure ANOVA 2x2
@Sara Romanella, Here is a Matlab solution. I put your data into a text file, data.txt (attached). The script reads the text ...

4 years ago | 0

Answered
Repeated Measure ANOVA 2x2
@Sara Romanella, don't have the Matlab yet but here it is in Excel. The ANOVA section at bottom right of the image shows the ...

4 years ago | 0

Answered
Func returns a vector of length 2, but the length of initial conditions vector is 9.
@Arda Canbas, Your initial conditions should be a 2-element vector, since mbk() returns a 2-componnt vector. So do tspan=[0 1...

4 years ago | 1

Answered
How to measure the angle between the poles and the x-axis using the Root Locus?
@Tarek Hajj Shehadi, Suppose you have a real-axis pole , or a zero at , on the real axis at position . And suppose you have a ...

4 years ago | 0

| accepted

Answered
I have differential equations and I need to write them into a vector function
@ssmith, The documentation for ode45() is really good, I think. Can you make an effort at writing some code, and post what you...

4 years ago | 0

Answered
multiple second order differential equations solution
@Arun Gowda, if you read the help on ode45, it is pretty clear on how to do this. The equations you wrote are 4 separate pair...

4 years ago | 0

Answered
I want to apply moving average filter! could you tell me how can I do that?
@James James, Here's a method that hadles the edges better, and is more elegant, because it eliminates for loops. t=0:100; x...

4 years ago | 0

Answered
I want to apply moving average filter! could you tell me how can I do that?
@James James, everything @Adam Danz said is correct. But here's an example, assuming you want a "flat" moving average: t=0:100...

4 years ago | 0

Answered
3D from multiple 2D curves
@Ivo Grigoli, Suppose you have M different curves y1(x), y2(x),...,yM(x), and they each have N points. Let's assume you also ha...

4 years ago | 0

| accepted

Answered
Why doesn't the code for cardiac cycle with varying resistance and capacitance run?
@Timothy Jen Roxas, I saved your program as script CVSimMatlabCentral.m. I ran it, with this result: >> CVSimMatlabCentral U...

4 years ago | 1

| accepted

Answered
Rotation of 3 vectors together
@Ozzy , Here is code that adjusts a rotation matrix to get the best fit. Best fit is defined as the minimum error between the d...

4 years ago | 1

| accepted

Answered
Rotation of 3 vectors together
Rotations preserve angles between vectors. You multiply the array of column vectors by a 3x3 rotation matrix. x = [0;0;1]; y...

4 years ago | 1

Answered
How to vertically concatenate files with spectral data that may be in xlsx, csv or a MATLAB dataset format
@Glyn Troup, Here is a demonstration using text files. Each file has a column of 10 numbers. The output array is interleaved a...

4 years ago | 0

| accepted

Answered
Calculate Rotation matrix from 3 points
@Jimmy Neutron, A rotation in three dimensions has three degrees of freedom, so you need to know three "before" points and thre...

4 years ago | 0

Load more