So, I was trying to curve fit stretch and strain curve for Mooney Rivlin model and I was just curious if it is at all possible to curve fit a variable for powers less than one? I want fit for x^2, x^1 ,x^-1 and x^-2. But the curve fitting toolbox wont let me manually choose the power. As soon as I set the degree to 4, the powers are 1,2,3 and 4 by default.

 Réponse acceptée

Ameer Hamza
Ameer Hamza le 30 Nov 2020
You can choose any exponent you want. For example
x = linspace(1, 2);
y = 2*x.^0.5 + 4.1*x.^1.2 + 3.3;
ft = fit(x.', y.', 'a*x.^0.5 + b*x.^1.2 + c')
Are you using cftool? If yes, choose custom equation in the menu.

2 commentaires

KAMRAN EQUBAL
KAMRAN EQUBAL le 30 Nov 2020
Thankyou that was really helpful
Ameer Hamza
Ameer Hamza le 30 Nov 2020
I am glad to be of help!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange

Produits

Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by