Answered

Getting different plot ranges

@Nathaniel Porter, T=readtable('glucose.csv'); %read file into table T You will see that T has columns named date, time, gluc...

Getting different plot ranges

@Nathaniel Porter, T=readtable('glucose.csv'); %read file into table T You will see that T has columns named date, time, gluc...

1 month ago | 0

| accepted

Question

using logical indexing to find events

I have three vectors of the same length: t, x, y. I also have tevent, whose elements are a subset of the elements in t. Can I u...

1 month ago | 3 answers | 0

Answered

Incompatible Indices when updating matrix in the loop

@Mouath Abu-Daoud, On the line in question, you are assigning vector xdft (right hand side) to one element of array PDarray(). ...

Incompatible Indices when updating matrix in the loop

@Mouath Abu-Daoud, On the line in question, you are assigning vector xdft (right hand side) to one element of array PDarray(). ...

1 month ago | 0

| accepted

Answered

Find the divergence of a vector field f=xyi+yzj+zxk

@Akinchay Vikas Jain, Your question looks like a homework or exam problem, which is not the purpose of this site. Also, you d...

Find the divergence of a vector field f=xyi+yzj+zxk

@Akinchay Vikas Jain, Your question looks like a homework or exam problem, which is not the purpose of this site. Also, you d...

1 month ago | 0

Answered

How to divided the signal to matrix where contain on rows and columns .

@Rasheed Majeed, Create a signal of length 102400: y=rand(102400,1); Change the shape to 100 columns: y=reshape(y,[1024,100]...

How to divided the signal to matrix where contain on rows and columns .

@Rasheed Majeed, Create a signal of length 102400: y=rand(102400,1); Change the shape to 100 columns: y=reshape(y,[1024,100]...

1 month ago | 0

Answered

Problem Defining Function (Time Shift)

@selin oktay, Here is a rewrite of your function that works like yours worked for scalat t, but it also works if t is a vector....

Problem Defining Function (Time Shift)

@selin oktay, Here is a rewrite of your function that works like yours worked for scalat t, but it also works if t is a vector....

2 months ago | 0

Answered

Problem Defining Function (Time Shift)

@selin oktay, in your first section of code, I think you meant to write "T/2" not T2. In your second sement of code, add "end"...

Problem Defining Function (Time Shift)

@selin oktay, in your first section of code, I think you meant to write "T/2" not T2. In your second sement of code, add "end"...

2 months ago | 0

Answered

indicating when data reaches a certain threshold

@Perri Johnson, Here is ground reaction force for 10 second sampled at 2.5 kHz. (Really one step, duplicated to make 10.) cle...

indicating when data reaches a certain threshold

@Perri Johnson, Here is ground reaction force for 10 second sampled at 2.5 kHz. (Really one step, duplicated to make 10.) cle...

2 months ago | 1

Answered

indicating when data reaches a certain threshold

@Perri Johnson SInce you did not provide data I will provide some data=load('grf_z_raw.txt'); t=data(:,1); y=data(:,2); plot...

indicating when data reaches a certain threshold

@Perri Johnson SInce you did not provide data I will provide some data=load('grf_z_raw.txt'); t=data(:,1); y=data(:,2); plot...

2 months ago | 1

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...

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...

2 months ago | 1

Submitted

findpeaksInterp

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

2 months ago | 5 downloads |

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...

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...

2 months 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...

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...

2 months 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...

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...

2 months 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.

2 months ago | 3 downloads |

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...

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...

2 months ago | 0

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.

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.

2 months 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 ...

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 ...

2 months 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...

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...

2 months 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...

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...

2 months 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...

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...

2 months 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 ...

plotting time delay system eigenvalues

In the example you have given, I assume is the output. For linear systems, exponentials (including complex exponentials) are ...

2 months 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...

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...

2 months 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 ...

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 ...

2 months 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...

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...

2 months 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 ...

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 ...

2 months 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 ...

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 ...

2 months 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...

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...

2 months 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 ...

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 ...

2 months ago | 0

| accepted