필터 지우기
필터 지우기

highest correlation values of a data

조회 수: 1 (최근 30일)
fafz1203
fafz1203 2016년 10월 20일
i have the following data, i want to find 10 columns of * h* that are correlated with _ j_ the most. That is, the columns that have the highest correlation value. Please take a look at my code below.
sigma = eye(500); mu = repelem(zeros,500); xTrain = mvnrnd(mu,sigma,100); xTest = mvnrnd(mu,sigma,100); yTrain = binornd(1,0.5,100,1); yTest = binornd(1,0.5,100,1);
h = vertcat(xTrain, xTest);
j = vertcat(yTrain, yTest);
%%%%%%%%% correlation of every row of h with j, c = corr(h(:,1),j);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by