correlation confiscation

to find the correlation coefficient between carves
202 Downloads
Updated 25 Sep 2013

View License

to find the correlation coefficient between carves
function rr=cor(yyn,yon)
n=length(yon); %yon x..outher..yo1 yyn...y ..adopted..yn1

a=n*sum(yon.*yyn)-sum(yon)*sum(yyn);

b=sqrt((n*sum(yon.^2)-(sum(yon))^2)*(n*sum(yyn.^2)-(sum(yyn))^2));
rr=(a/b);

Cite As

ahmed majeed (2026). correlation confiscation (https://ch.mathworks.com/matlabcentral/fileexchange/43634-correlation-confiscation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0