Data fitting in between following variables x and b for quadratic equation
Ältere Kommentare anzeigen
clear all
clc
a=[0.450 0.486 0.546 0.589 0.633 0.656];
b=[1.5435 1.536 1.5273 1.523 1.5197 1.5179];
x=1./a.^2;
3 Kommentare
Mathieu NOE
am 20 Jan. 2023
it's unclear what the input and output are
usually a and b would be parameters / coefficients, x and y the input / output arrays
MOHD UWAIS
am 20 Jan. 2023
Torsten
am 20 Jan. 2023
So you want to determine p0,p1,p2 such that (in the least-squares sense)
p0 + p1*(1/0.45)^2 + p2*(1/0.45)^4 = 1.5435
p0 + p1*(1/0.486)^2 + p2*(1/0.486)^4 = 1.536
p0 + p1*(1/0.546)^2 + p2*(1/0.546)^4 = 1.5273
...
p0 + p1*(1/0.656)^2 + p2*(1/0.656)^4 = 1.5179
?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Mathematics and Optimization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
