Answered

How to compute the average path from scattered data (and its variance)?

@Alberto Bacchin, This is a good question which arises in slightly different forms in a wide array of problems. One example: ho...

How to compute the average path from scattered data (and its variance)?

@Alberto Bacchin, This is a good question which arises in slightly different forms in a wide array of problems. One example: ho...

2 månader ago | 0

Answered

Hi. I'm trying to plot a polynomial function but I'm not getting the desired output. Can you tell me what I'm doing wrong?

@Zainab Waqar, replace x=-2:1; with x=-2:.01:1; to get a step size of .01, instead of a step size of 1. Good luck! ...

Hi. I'm trying to plot a polynomial function but I'm not getting the desired output. Can you tell me what I'm doing wrong?

@Zainab Waqar, replace x=-2:1; with x=-2:.01:1; to get a step size of .01, instead of a step size of 1. Good luck! ...

2 månader ago | 1

Answered

Curve fitting and convergence to estimate two coefficients

@Anand Rathnam, I was bothered by the poor performance of fmincon() on this problem. Even when we tried starting at multiple lo...

Curve fitting and convergence to estimate two coefficients

@Anand Rathnam, I was bothered by the poor performance of fmincon() on this problem. Even when we tried starting at multiple lo...

2 månader ago | 0

| accepted

Answered

Curve fitting and convergence to estimate two coefficients

@Anand Rathnam, I also wrote the attached script: myModelTest.m. This script calls test myModel to make sure it gives reasonab...

Curve fitting and convergence to estimate two coefficients

@Anand Rathnam, I also wrote the attached script: myModelTest.m. This script calls test myModel to make sure it gives reasonab...

2 månader ago | 0

Answered

Curve fitting and convergence to estimate two coefficients

Here is fitDataPolyStart.m.

Curve fitting and convergence to estimate two coefficients

Here is fitDataPolyStart.m.

2 månader ago | 0

Answered

Curve fitting and convergence to estimate two coefficients

@Anand Rathnam, Here is a new main program fitDataPolyStart.m, that tries multiple starting points, to reduce the chance of fin...

Curve fitting and convergence to estimate two coefficients

@Anand Rathnam, Here is a new main program fitDataPolyStart.m, that tries multiple starting points, to reduce the chance of fin...

2 månader ago | 0

Answered

Curve fitting and convergence to estimate two coefficients

@Anand Rathnam, Your code was a very good start. There were two fatal errors. ONe is that when you call fmincon(), you must pa...

Curve fitting and convergence to estimate two coefficients

@Anand Rathnam, Your code was a very good start. There were two fatal errors. ONe is that when you call fmincon(), you must pa...

2 månader ago | 0

Answered

Curve fitting and convergence to estimate two coefficients

@Anand Rathnam, fmincon() is a multidimensional minimization routine. By multidimensional I mean it adjusts multiple unknown p...

Curve fitting and convergence to estimate two coefficients

@Anand Rathnam, fmincon() is a multidimensional minimization routine. By multidimensional I mean it adjusts multiple unknown p...

2 månader ago | 0

Answered

Given the matrix 𝐴, use MATLAB to compute 𝐴𝐴 𝑡 .

@yihan wang, For a real matrix, A' is Matlab code for the transpose of A. Therefore: A=[6,-2,-1,0;3,-5,0,-3;10,5,0,-1;-1,3,4,1...

Given the matrix 𝐴, use MATLAB to compute 𝐴𝐴 𝑡 .

@yihan wang, For a real matrix, A' is Matlab code for the transpose of A. Therefore: A=[6,-2,-1,0;3,-5,0,-3;10,5,0,-1;-1,3,4,1...

2 månader ago | 0

Answered

How can I obtain 20 frames of noise?

@Rahul Shah, do your frames have one or two dimensions? I will assume you mean 2D frames. Let's assume each frame is 32x32. The...

How can I obtain 20 frames of noise?

@Rahul Shah, do your frames have one or two dimensions? I will assume you mean 2D frames. Let's assume each frame is 32x32. The...

2 månader ago | 0

| accepted

Answered

How to best modify FFT bin amplitudes before IFFT (DFT, windowing)?

@Pythagorean, You say "For FFT. I understand that the first half of the resulting frequency bins are the bins with the relevant...

How to best modify FFT bin amplitudes before IFFT (DFT, windowing)?

@Pythagorean, You say "For FFT. I understand that the first half of the resulting frequency bins are the bins with the relevant...

2 månader ago | 1

| accepted

Answered

ODE Classes: Numerical Integration

@kileigh palmer, This site https://www.mathworks.com/help/matlab/math/summary-of-ode-options.html says the Jacobian option is ...

ODE Classes: Numerical Integration

@kileigh palmer, This site https://www.mathworks.com/help/matlab/math/summary-of-ode-options.html says the Jacobian option is ...

2 månader ago | 0

Answered

calculate summation of vectors

@Kha Le, This sounds a lot like a homework question. Hints: Break it into two parts: the sum of the unsquared terms plus the su...

calculate summation of vectors

@Kha Le, This sounds a lot like a homework question. Hints: Break it into two parts: the sum of the unsquared terms plus the su...

2 månader ago | 0

| accepted

Answered

Plz help how can i do this

@eman baky, Your quesiton is not eassy to read bcause you have formatted parts of your question as code that should not be. I ...

Plz help how can i do this

@eman baky, Your quesiton is not eassy to read bcause you have formatted parts of your question as code that should not be. I ...

2 månader ago | 0

Answered

Hi everyone, i want to ask about curve fitting problem,

@laurensius adhitya, One set of four numbers (a,b,c,d) is not enough to determin the four unknowns (k1,k2,k3,k4). You need fou...

Hi everyone, i want to ask about curve fitting problem,

@laurensius adhitya, One set of four numbers (a,b,c,d) is not enough to determin the four unknowns (k1,k2,k3,k4). You need fou...

2 månader ago | 0

Answered

Specify Bounds Vpasolve Two Unknowns

@John, I would use simple geometry. You say "Coordinates of the centre of the circle (y,z) should be within the bounds 12.5 and...

Specify Bounds Vpasolve Two Unknowns

@John, I would use simple geometry. You say "Coordinates of the centre of the circle (y,z) should be within the bounds 12.5 and...

2 månader ago | 0

| accepted

Answered

Row to column matrix

@armin m, See the following: a=[1,1+i,-1+i] b=conj(a')

Row to column matrix

@armin m, See the following: a=[1,1+i,-1+i] b=conj(a')

2 månader ago | 0

Answered

Z-angle of a fit-plane having 4 points

@Gaetano Pavone, In my previous post, I supplied a script (fitPlane3a.m) that finds the plane that is the best fit to 4 or more...

Z-angle of a fit-plane having 4 points

@Gaetano Pavone, In my previous post, I supplied a script (fitPlane3a.m) that finds the plane that is the best fit to 4 or more...

3 månader ago | 0

Answered

Z-angle of a fit-plane having 4 points

@Gaetano Pavone Here's a script (attached) that fits a plane to 4 or more points. It fits by ordinary least squares, which mea...

Z-angle of a fit-plane having 4 points

@Gaetano Pavone Here's a script (attached) that fits a plane to 4 or more points. It fits by ordinary least squares, which mea...

3 månader ago | 0

Answered

Z-angle of a fit-plane having 4 points

@Gaetano Pavone, YOu also requested help for how to plot the plane, the points, the normal vector. See attached. This is for th...

Z-angle of a fit-plane having 4 points

@Gaetano Pavone, YOu also requested help for how to plot the plane, the points, the normal vector. See attached. This is for th...

3 månader ago | 1

Answered

Z-angle of a fit-plane having 4 points

@Gaetano Pavone, Here is code to find the unit normal to a plane defined by three points, and then the angle with the z-axis.. ...

Z-angle of a fit-plane having 4 points

@Gaetano Pavone, Here is code to find the unit normal to a plane defined by three points, and then the angle with the z-axis.. ...

3 månader ago | 1

| accepted

Answered

Using gausswin function and iFT'ing data

@Cheggers, you are correct, you can use the same variable name for an input to the function and for an output from the function....

Using gausswin function and iFT'ing data

@Cheggers, you are correct, you can use the same variable name for an input to the function and for an output from the function....

3 månader ago | 0

Answered

Intersection between two functions

@Behbod Izadi, syms x S=solve(2.2/sqrt(2*9.81*x) == tanh((3.5/(2*4.5))*sqrt(2*9.81*x)),x) gives an answer. Is it reasonable? ...

Intersection between two functions

@Behbod Izadi, syms x S=solve(2.2/sqrt(2*9.81*x) == tanh((3.5/(2*4.5))*sqrt(2*9.81*x)),x) gives an answer. Is it reasonable? ...

3 månader ago | 0

Answered

Filter recurring oscillation in 2D Data

@DGM, @Konvictus177, I cannot see diagonal banding. The arrows added to th image point to a vertical line, not a diagnonal feat...

Filter recurring oscillation in 2D Data

@DGM, @Konvictus177, I cannot see diagonal banding. The arrows added to th image point to a vertical line, not a diagnonal feat...

3 månader ago | 0

Answered

Using gausswin function and iFT'ing data

@Cheggers OK, I am glad if my earlier comment served as an answer to your probelem. I still think function windowFID() has a p...

Using gausswin function and iFT'ing data

@Cheggers OK, I am glad if my earlier comment served as an answer to your probelem. I still think function windowFID() has a p...

3 månader ago | 0

| accepted

Answered

How to fill a matrix with formulas

@aziz monavar, I see from your comment that you want the transpose. Therefore do this: y=zeros(1,20); y(1)=0.4; for i=2:20, ...

How to fill a matrix with formulas

@aziz monavar, I see from your comment that you want the transpose. Therefore do this: y=zeros(1,20); y(1)=0.4; for i=2:20, ...

3 månader ago | 1

Answered

Z-angle of a fit-plane having 4 points

@Gaetano Pavone, Is each data point a set of 3 coordinates? If the answer is yes, then do you know the x and y values exactly?...

Z-angle of a fit-plane having 4 points

@Gaetano Pavone, Is each data point a set of 3 coordinates? If the answer is yes, then do you know the x and y values exactly?...

3 månader ago | 0

Answered

How to fill a matrix with formulas

@aziz monavar, You have a matrix y(i,j) but your formula is only for y(i). That is the problem @John D'Errico identifies. If y...

How to fill a matrix with formulas

@aziz monavar, You have a matrix y(i,j) but your formula is only for y(i). That is the problem @John D'Errico identifies. If y...

3 månader ago | 0

Answered

Spline interpolation for angular data

@mukesh bisht, I suspect my earlier proposal won't work as I suggested, because the x-values passed to spline() must be unique....

Spline interpolation for angular data

@mukesh bisht, I suspect my earlier proposal won't work as I suggested, because the x-values passed to spline() must be unique....

3 månader ago | 0

Answered

Spline interpolation for angular data

@mukesh bisht, The shape of the fitted spline at each point depends on points before and after that point. The curves do mot m...

Spline interpolation for angular data

@mukesh bisht, The shape of the fitted spline at each point depends on points before and after that point. The curves do mot m...

3 månader ago | 0