Hi Danju,
The below should serve for your purpose.
George
a=Fit.p(0);
b=Fit.p(1);
On Oct 31, 2012, at 1:59 PM, Danju Men wrote:
> Hi all,
>
>
>
> I'm using the Fit Functions to do straight line curve fitting in macro. Is
> there a way to return the parameters a, b instead of just showing them in
> the plot, so that I can use a, b in later coding?
>
> x_h = newArray(.);
>
> y_h = newArray(.);
>
> Fit.doFit("y = a*x + b", x_h, y_h);
>
> Fit.plot
>
>
>
> Thanks,
>
> Danju
>
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.htmlGeorge H. Patterson
Building 13 3E33
13 South Drive
Biophotonics Section
National Institute of Biomedical Imaging and Bioengineering
National Institutes of Health
Bethesda, MD 20892
Office: 301-443-0241
Fax: 301-496-6608
[hidden email]
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html