Effacer les filtres
Effacer les filtres

How to fit a curve to a power spectrum curve which follows power law

4 vues (au cours des 30 derniers jours)
Chris Martin
Chris Martin le 15 Jan 2013
How to fit a curve to a power spectrum curve which follows power law

Réponses (1)

Mona Mahboob Kanafi
Mona Mahboob Kanafi le 13 Août 2013
Modifié(e) : Mona Mahboob Kanafi le 14 Août 2013
Hi,
Go to cftool, then select your data and choose power; set number of terms to '1' if it follows this equation: y = a*x^b
Also you can do this on command window:
f = fit(x,y,'power1');
and then if you want the parameters just use this command:
coefs = coeffvalues(f);

Catégories

En savoir plus sur Curve Fitting Toolbox 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