Borrar filtros
Borrar filtros

How to find values of variables when a value is known (after using curve fitter)?

1 visualización (últimos 30 días)
I have used curve fitter app for my xyz data. The custom equation I used is :
a0*exp(-(((x-x0)*cos(phi)+(y-y0)*sin(phi))^2/0.5*ax^2) - (((y-y0)*cos(phi)-(x-x0)*sin(phi))^2/0.5*ay^2))
The equation has six unknown variables : a0, ax, ay, phi, x0, and y0. After fitting the equation on the data, the values obtained were as follows
a0 = 2.7451, ax = 8.1356, ay = 10.3918, phi = 4.1032, x0 = 88.3697, and y0 = 22.5765
I wanted to find the values of ax and ay when the value of a0 is 61% of its value (i.e., 1.6745). How can I do so?
Thank you
Regards
  2 comentarios
Stephen23
Stephen23 el 15 de Feb. de 2024
Editada: Stephen23 el 15 de Feb. de 2024
An equation must be equal to something... but you have not told us what that formula is equal to.
Should we assume zero?
Deepshikha Deo
Deepshikha Deo el 15 de Feb. de 2024
Editada: Deepshikha Deo el 15 de Feb. de 2024
The z values are treated as equal to the equation. Thus, in curve fitter toolbox you only need to type equation, i.e., z= f(x,y)= equation
And the x,y,z values are used as inputs

Iniciar sesión para comentar.

Respuesta aceptada

Drew
Drew el 21 de Feb. de 2024
Assume this is a surface fit z = f(x,y) as in Curve Fitter app. If it is given that a0 = 1.6745, then substitute that into your given custom equation
a0*exp(-(((x-x0)*cos(phi)+(y-y0)*sin(phi))^2/0.5*ax^2) - (((y-y0)*cos(phi)-(x-x0)*sin(phi))^2/0.5*ay^2))
which results in the new custom equation
1.6745*exp(-(((x-x0)*cos(phi)+(y-y0)*sin(phi))^2/0.5*ax^2) - (((y-y0)*cos(phi)-(x-x0)*sin(phi))^2/0.5*ay^2))
Finally, use the new custom equation in the curve fitter app to complete a new surface fit on your data. The new surface fit will solve for values of ax, ay, phi, x0, and y0.
If this answer helps you, please remember to accept the answer.
  1 comentario
Deepshikha Deo
Deepshikha Deo el 26 de Feb. de 2024
Thank you for the answer Drew. After some brainstorming, I also thought the same but after some time I realised I missed an important point. What I want is that the surface should be drawn from the maximum value to its 61 percent fall and the values of ax and ay needs to be found at that point. In this first image, values of ax and ay are found at the dotted line which is above the zero. The image is taken from "https://doi.org/10.1016/j.jclepro.2022.133720".
Here is another example in 2D where the golden region is above zero and the blue line used to represent ax (above 0). The image is taken from "doi:10.3390/a8020082".
So, I want to find the values of ax and ay at 61 percent of its maximum value but it should not be from zero. Any suggestion?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by