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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ungefär en månad 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...

ungefär en månad 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...

ungefär en månad 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...

ungefär en månad 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 ...

ungefär en månad 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 ...

ungefär en månad 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 månader 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 månader ago | 0

Answered
Time dependent heat transfer
@Bruce Griffin, Change nmax from 1 to 500. I really like how you used meshgrid to generate all the time, position combintions ...

2 månader ago | 0

| accepted

Answered
Time dependent heat transfer
@Bruce Griffin, You said the third [side] is at 100. That is not true. This problem has one spatial dimension and one time dime...

2 månader ago | 0

Answered
How to define a path from a set of x-y points and estimate its smoothness?
@Luigi Truppa, Example with two paths, each with 51 waypoints. Path A is a sequence of random points. Path B is a circle. ...

2 månader ago | 0

Answered
How to compute the average path from scattered data (and its variance)?
@Alberto Bacchin, here's another plot you can make, if you use the mean-of-the-normalized paths approach (pathSimulateAndAverage...

2 månader ago | 0

Answered
How to compute the average path from scattered data (and its variance)?
@Alberto Bacchin, Since you said you do not care about time, it is OK to normalize all the paths to have the same number of ste...

2 månader ago | 0

Answered
Filling incomplete data with cftool
@Nicolas Silva Schmalbach See attached. %replaceNaNs.m WCRose 20210928 %Replace NaN values in array with interpolated value...

2 månader ago | 0

| accepted

Answered
Output data to text file
@Tyler Bodnarik, On Matlab 2021, use writetable() or dlmwrite(). See help for each. On Matlab 2018, use dlmwrite(), since writ...

2 månader ago | 0

| accepted

Load more