statbivar2
algorithm
- calcalates true joint pdf of two variables
- calculates correlation between the two variables
- plots the pdf
- works for vectors and matrices

syntax
[biprob,corr,xint,yint]=statbivar2(variable1,variable2)
example for input
[biprob,corr,xint,yint]=statbivar2(Z,TEMP)
input arguments
| Name | description |
|---|---|
| variable1 | user defined variable, e.g. Z matrix or vector |
| variable2 | user defined variable, e.g. TEMP matrix or vector |
output arguments
| Name | description |
|---|---|
| biprob | values of true bivariate pdf |
| corr | correlation coefficient between the two variables |
| xint,yint | coordinates of the mesh of the pdf |
matlab tools required
toolbox tools used
- inpolygon