image thumbnail

RM_vec2cor

version 1.0.0.0 (4.42 KB) by Ruslan May
Function for calculation of correlation coefficients of two vectors

16 Downloads

Updated 14 May 2018

View License

The correlation of two vectors
[rCol, rOrt, miu, Dmiu]=RM_vec2cor(uN, vN, uM, vM);

INPUT
uN is eastward component of the vector N
vN is northward component of the vector N
uM is eastward component of the vector M
vM is northward component of the vector M
OUTPUT
rCol is the collinear vector correlation coefficient r(||)=(-1...1)
rOrt is the orthogonal vector correlation coefficient r(_|_)=(-1...1)
miu is the vector correlation index miu=(0...1)
Dmiu is angle of the deviation of coordinate systems, with which the vector series would have the largest indicator of vector correlation (miu). Dmiu=(-180...+180).

Cite As

Ruslan May (2022). RM_vec2cor (https://www.mathworks.com/matlabcentral/fileexchange/67326-rm_vec2cor), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!