How to fit a curve to a power spectrum curve which follows power law
조회 수: 3 (최근 30일)
이전 댓글 표시
How to fit a curve to a power spectrum curve which follows power law
댓글 수: 0
답변 (1개)
Mona Mahboob Kanafi
2013년 8월 13일
편집: Mona Mahboob Kanafi
2013년 8월 14일
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);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!