Respondida
How to use binomial expansion to produce correct results?
How? Using double precision arithmetic? You often can't. You need to remember that double preciion arithmetic lives in 16 signif...

más de 3 años hace | 0

| aceptada

Respondida
How small is Zero?
It is easy for that to happen. Of course, you don't actually tell us WHAT test you did. But this just means you have an event ou...

más de 3 años hace | 1

| aceptada

Respondida
Lagrange multipliers in constrained nonlinear optimization
Let me give a simple example, showing why solve is a poor tool for such a problem. minimize x^2 + y^2 + z^2 subject to x...

más de 3 años hace | 0

Respondida
Solving a system of second order ODE backwards
Easy, peasy. For example, solve the ODE y' = sin(t) subject to the initial condition, that at t==1 we have y(1)=1/2. Now ...

más de 3 años hace | 1

| aceptada

Respondida
Interpolated points to be at a certain equal angular distance
Simple. Without even looking at the plots, first... The curve is not closed. You are clearly using code I wrote, but now fittin...

más de 3 años hace | 0

Respondida
Hermite polynomial method, incorrect coefficients
I could swear I answered this question only recently. Maybe not for you, and I don't feel like a search through the many thousan...

más de 3 años hace | 0

Enviada


randpoly
Generate N uniformly distributed points inside a supplied polygon (or polyshape)

más de 3 años hace | 2 descargas |

0.0 / 5
Thumbnail

Enviada


allcrossings
Locate all intersections of a pair of functions f1 and f2, on a finite domain

más de 3 años hace | 1 descarga |

0.0 / 5

Respondida
How to randomly generate point cloud in irregular range?
It is not at all clear what you are looking to do from your question. But I believe you are asking how, given a 2-dimensional ar...

más de 3 años hace | 1

| aceptada

Respondida
RMSE - Root mean square Error
UPDATE: Starting in R2022b, you can now calculate Root Mean Square Error using the built in MATLAB function ‘rmse’: https://www....

más de 3 años hace | 24

| aceptada

Respondida
Where should I add a continue command to skip prime numbers less than 10?
This does not work? I'm surprised. ;-) Did you want to count those primes too? You do not say. For example, this will not count...

más de 3 años hace | 0

Respondida
How to generate a diagram illustrating the relationship between several nested functions?
You are asking for what is essentially a high level flow chart, produced automatically from existing MATLAB code, that shows how...

más de 3 años hace | 0

Respondida
dsolve: Number of equations greater than number of indeterminates. Trying heuristics to reduce to square system.
Is ode1 a differential equation? (NO. ode1 is an algebraic relationship between the variables.) For example, conside this simple...

más de 3 años hace | 0

| aceptada

Respondida
How to find (interpolated) zeros in a data array
There is no assurance that interp2 and contourc are using identically the same scheme for interpolation. Even in the case of "li...

más de 3 años hace | 0

Respondida
Getting equation for a interpolated spline using csaps
I'll post this as a separate answer, since I did not use a spline at all to build the model, and so it does not get lost in the ...

más de 3 años hace | 0

| aceptada

Respondida
The MATLAB function to solve implicit equation
Assuming your question is how to solve the equation [m^2 /( 3(a+a0)^2)] * (2 * k1 + 3 * k2) = a0 * (2/v1 + 5/v2) I removed...

más de 3 años hace | 0

Respondida
Getting equation for a interpolated spline using csaps
Can you get the spline equation? No. There is no simple equation you can write down. Or, if you could write it down, it would in...

más de 3 años hace | 0

Respondida
how to filter the noise of a signal
This is probably a good task for a median filter. load matlab.mat whos plot(F) Fhat = medfilt1(F,100); plot(Fhat) Larger v...

más de 3 años hace | 0

Respondida
Finding all the positive Roots of non linear equation and plotting the modes
Of course, this would have been for homework, so there is not really much point to posting this answer. Oh well. I will anyway, ...

más de 3 años hace | 0

Respondida
contour for scatter data
Let me give an example of how to use a tricontouring tool for scattered data. x = rand(100,1); y = rand(100,1); zfun = @(x,...

más de 3 años hace | 0

Respondida
Unable to use 'fit' function from Curve Fitting Toolbox
Is fit giving you fits? First, check that MATLAB thinks the curvefitting toolbox is installed, and that you have a license for ...

más de 3 años hace | 0

| aceptada

Respondida
Generating a distribution of points relative to closed surface (alphshape)
Ok. I''ll offer a couple of solutions. Recognize that nothing will be perfect, since these are ad hoc solutions, and an alpha sh...

más de 3 años hace | 0

| aceptada

Respondida
help me fix the Error
which distance_to_earthcos -all This function is not a MATLAB function. It is not found in any toolbox either. For that matter,...

más de 3 años hace | 0

Respondida
Problem with derivative function
What you don't seem to appreciate is that in the eyes of the symbolic toolbox, something like 2^(-1/2) Is a numerical result. So...

más de 3 años hace | 0

| aceptada

Respondida
Planes and vectors in 3d
Are these vectors with a tail at (0,0,0)? If so, then they must cross the plane, as long as the z-component is not zero. Or are ...

más de 3 años hace | 0

| aceptada

Respondida
How to fit multiple gaussian in a curve ?
Easy enough. You NEED good starting values though. Crappy starting values --> crappy results. load dsp.mat plot(f,pxx) grid o...

más de 3 años hace | 0

| aceptada

Respondida
replace the values by nearest mean of the matrix
Using my inpaint_nans.... y = randi(10,[7,7]) - 2 y = 0 5 0 8 1 0 2 6 5 7 -1 ...

más de 3 años hace | 0

Respondida
Going back to unvisited node through visited node by minimum weight of edge
Why are you not using the existing graph tools to solve graph problems? It is never a good idea to write your own code to solve ...

más de 3 años hace | 0

| aceptada

Respondida
my objective function should return less than 10^-6.
First, suppose your car had a problem. Would you take a picture of your car and send it to your local auto mechanic? Would they ...

más de 3 años hace | 0

Respondida
plot a matrix in 3D
DID YOU TRY IT? Why not? So, given some arbitrary complex matrix, how do you compute the magnitude? ABS does that. How you you ...

más de 3 años hace | 0

Cargar más