R2 calculator

Function for direct calculation of the coefficient of determination of two vectors

You are now following this Submission

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 (2026). R2 calculator (https://uk.mathworks.com/matlabcentral/fileexchange/56194-r2-calculator), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0