Community Profile

photo

William Rose


Active since 2007

Statistics

All
  • 3 Month Streak
  • Revival Level 2
  • Knowledgeable Level 3
  • Personal Best Downloads Level 1
  • First Review
  • 5-Star Galaxy Level 1
  • First Submission
  • Thankful Level 1
  • First Answer

View badges

Content Feed

View by

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

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

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

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

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

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

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

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

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

11 days ago | 0

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

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

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

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

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

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

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

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

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

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

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

30 days ago | 0

Answered
Solve ode system numerically
@Zhaokai Yin, This is a good question. I thought it could be done with ode45, by using the mass matrix option. This appears to...

1 month ago | 0

Answered
how to generate a( 226 × 1 ) vector "b" as a zero mean white Gaussian noise (WGN) sequence with variance =0.24e-4 ?
@ad lyn b=wgn(226,1,.24e-4,'linear'); fprintf('Variance of b=%6f\n',var(b)) If you run the code above multiple times, you wil...

1 month ago | 0

| accepted

Answered
How to fit a function with an integral term to a set of data?
@alfredo scigliani, This fitting problem is complicated, since the function to be fitted is an integral. You can pass the pa...

1 month ago | 1

| accepted

Answered
Write a MATLAB program to draw the surfaces z=sqrt(x^2+y^2), z=x^2+y^2, z=x+y and a cylinder of radius 3 using subplot
@Vansh Yadav You are being asked do draw four surfaces in different parts of a single figure. See the help for subplot() for e...

1 month ago | 1

| accepted

Answered
Hello All .I want a solution with a simple explanation
Since I'm not good at symbolic math in Matlab, I'll give an example of how to do this problem non-symbolically. The code below ...

1 month ago | 1

| accepted

Answered
Hello All .I want a solution with a simple explanation
@Walter Roberson said he is correcting your syntax, but not your logic. @Walter Roberson sees that there are logical errors in ...

1 month ago | 0

Answered
Time dependent heat transfer
@Bruce Griffin, here is the code that does the simulation. The original incorrect answer equation is in the code, but it is com...

2 months ago | 0

Answered
Time dependent heat transfer
@Bruce Griffin, I added code to do an actual simulation. I found an interesting and instructive result. When numx=1000 and numt...

2 months ago | 0

Load more