Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: how to add linear regression line and equation in the figure?
Replies: 3   Last Post: Jul 20, 2012 6:45 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Kuo-Hsien

Posts: 81
Registered: 2/21/08
how to add linear regression line and equation in the figure?
Posted: Jul 19, 2012 5:09 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I search a bit, but can't find an easy Matlab function for this.

I like to add a linear regression line to my 1:1 scatter plot.
I also like to print the regression equation y = ax +b, r2 and RMSE, p-value in the corner of the scatter plot.
I wonder if you can show me an easy way.


Thanks a lot.
Michael



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.