# I want to find 4 constant with used 1 eq

2 vues (au cours des 30 derniers jours)
Arash_ORD le 21 Août 2022
Commenté : Arash_ORD le 27 Août 2022
Hello guy
How can I find 4 constant with used 1 equation?
My eq is ''ydata=x1*(1-exp(-x2*516))+x3*(exp(x4*516)-1)'' and I just have a ydata.
ydata=0.269
x1 x2 x3 x4 are my constant.
Thanks
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponse acceptée

John D'Errico le 27 Août 2022
I'd like to solve a problem just like you. Let me pretend I have been given the equation:
a + b + c + d = 5
Can I determine all 4 variables? Is there any way I can learn the value of all 4 variables, given ONLY that one equation? So one data point only? The answer of course is no. At best you can pick the value of any three of those variables. Set them equal to any number you want. Then you can solve for the one variable you have not specified. That is the fundamental nature of an underdetermined problem - the one equation does not provide sufficient information.
If you have MULTIPLE data points, this becomes a different question. So if you have sufficient data points, then you can solve the problem. But you have said you have only one data point. (And I'm sorry, but the nice flowchart you have shown in a comment is not going to make the mathematics work.) An underdetermined problem is just that.
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Plus de réponses (1)

Alan Weiss le 21 Août 2022
Modifié(e) : Alan Weiss le 21 Août 2022
This is an underdetermined problem, meaning there are many different values of x1, x2, x3, and x4 that work. For example, choose any nonzero value for x2, and then you can solve for x1 given any values of x3 and x4:
Alan Weiss
MATLAB mathematical toolbox documentation
##### 8 commentairesAfficher 6 commentaires plus anciensMasquer 6 commentaires plus anciens
Arash_ORD le 27 Août 2022
Hello Mr. @Torsten.
Thanks for answering my question.
Arash_ORD le 27 Août 2022
Hello Mr. @John D'Errico.
Thanks for answering my question.

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Solver Outputs and Iterative Display dans Help Center et File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by