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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 1

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

Respondida
Curve fitting and convergence to estimate two coefficients
Here is fitDataPolyStart.m.

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

Cargar más