Finding inverse quadratic equation

4 vues (au cours des 30 derniers jours)
FADLINA DIYANA
FADLINA DIYANA le 2 Juil 2018
Commenté : Torsten le 2 Juil 2018
Hi, I'm trying to find a quadratic equation to express Force in terms of voltage (Force=a*(voltage)^2+b*(voltage)+c) for FSR sensors.
Currently, using the data I've collected , I managed to plot graph for Voltage output based on force applied. Then, I've found the equation for Voltage in terms of Force using the Polyfit. Basically, the known values is force applied in Newton and the corresponding is Voltage values based on Force.
I've tried using 'finverse' function in Matlab, however for linear only it works for quadratic it doesn't. The force need to increase as voltage increases, but using 'finverse' the force decreases as voltage increases. Another problem is that, at zero voltage, the force is supposed to be zero too but I couldn't get this.
The second method that I'm trying out is using 'solve()'. But I am unsure of how to use this. Can anyone guide me how to use solve() to get the quadratic equation? And is there another way to get the equation?
My code is attached here. Thank you
  4 commentaires
FADLINA DIYANA
FADLINA DIYANA le 2 Juil 2018
And this is the calibration data to run the code.
Torsten
Torsten le 2 Juil 2018

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by