Skip to content

This MATLAB function creates a scatter plot and computes the linear regression.

Notifications You must be signed in to change notification settings

marcosp-araujo/scatter-fit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

scatter-fit

This MATLAB function creates a scatter plot and computes the linear regression providing slope and intercept, determination coefficient and root mean squared error (RMSE).

Example 01 - The most simple call

scatter_fit(x,y);

Example 02 - Setting the same limits to x and y axes

scatter_fit(x,y,'limits',[4 16]);

Example 03 - Same limits with reference 1:1 (x==y) line

scatter_fit(x,y,'limits',[4 16],'reference',1);

Example 04 - Including color code to the scattered samples

scatter_fit(x,y,'limits',[4 16],'reference',1,'color',y);

About

This MATLAB function creates a scatter plot and computes the linear regression.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages