Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

# Help with fit of a function

2 visualizaciones (últimos 30 días)
aurc89 el 25 de Mzo. de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have a function y=f(x) given by two vectors x and y, and I need to do a gaussian fit of this function, but only between two values x1 and x2 of x. How can I do this? Thanks
##### 1 comentarioMostrar -1 comentarios más antiguosOcultar -1 comentarios más antiguos
the cyclist el 25 de Mzo. de 2015
Your question is not very clear, at least to me. I think you need to edit it to make it clearer, and more detailed.
Two specific things that are not clear to me:
• You say that you have a function f(), but then you say you need to fit the function. I'm guessing you do not actually have the function f(), but you actually just have data. But I'm not sure.
• I don't understand what you mean by "only between two values x1 and x2 ...".
Remember, we only know what you tell us about your problem. The time you spend clearly laying out your problem for us will help you in the end.

### Respuestas (1)

John D'Errico el 25 de Mzo. de 2015
Editada: John D'Errico el 25 de Mzo. de 2015
You want to use two points to fit a Gaussian your data?
Depending on what you mean by a "gaussian fit", this is either impossible to do with only two data points, or useless. Most probably, both.
Of course, if you meant something entirely different about what you meant by this being only between two points, then explain yourself far more clearly. If perhaps you want this "Gaussian" to live only in a restricted domain, then again, you need to rethink your problem, since a Gaussian extends to infinity in all directions.
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

La pregunta está cerrada.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by