cov_nd.m
来自「toolbox of BVQX, This is the access betw」· M 代码 · 共 32 行
M
32 行
function [cv, r] = cov_nd(X,Y)
% cov_nd - computes covariance and corrcoefs for vector pairs in N-D
%
% FORMAT: [cv, r] = cov_nd(X,Y)
%
% Input fields:
%
% X, Y N-D double matrices of same size
%
% Output fields:
%
% cv covariance matrix
% r correlation coefficients matrix
%
% Note: cv and r are computed over the LAST dimension, so if X and Y
% are 10-by-30-by-50 matrices, cv and r are 10-by-30 matrices.
%
% This is a MEX (c compiled) function for efficiency. Results differ
% slightly from those obtained by calling MATLAB's cov/corrcoef.
%
% See also cov, corrcoef
% Version: v0.5c
% Build: 6120415
% Date: Dec-04 2006, 3:15 PM CET
% Author: Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL/Info: http://wiki.brainvoyager.com/BVQXtools
% just to make sure
cv = numel(X);
r = numel(Y);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?