Be the first to rate this file! 10 Downloads (last 30 days) File Size: 1.07 KB File ID: #43634
image thumbnail

correlation confiscation

by

 

to find the correlation coefficient between carves

| Watch this File

File Information
Description

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);

MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us