How to fit a curve to a power spectrum curve which follows power law
Mostrar comentarios más antiguos
How to fit a curve to a power spectrum curve which follows power law
Respuestas (1)
Mona Mahboob Kanafi
el 13 de Ag. de 2013
Editada: Mona Mahboob Kanafi
el 14 de Ag. de 2013
0 votos
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);
Categorías
Más información sobre Interpolation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!