R2 calculator

Version 1.0.0.0 (1012 Bytes) by Joris Meurs
Function for direct calculation of the coefficient of determination of two vectors
773 Downloads
Updated 28 Mar 2016

View License

Filname: 'rsquare.m'. This file can be used for directly calculating
the coefficient of determination (R2) of a dataset.
Two input arguments: 'X' and 'Y'
One output argument: 'R2'

X: Vector of x-parameter
Y: Vector of y-paramter
R2: Coefficient of determination

Input syntax: rsquare(X,Y)

Developed by Joris Meurs BASc (2016)

Cite As

Joris Meurs (2024). R2 calculator (https://www.mathworks.com/matlabcentral/fileexchange/56194-r2-calculator), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0