Correlate different type of data

Hello,
I would like to create a code that correlates two types of data. the problem is that my first team of data has 300 numbers, and the seocnd team of data have 5000 numbers.
Is there a way/command to make this correlation?

4 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 12 月 14 日
Last way:
  1. Interpolate points in data 1, to make it 3000
  2. Correlation between data1 and data2
Yes, it depends entirely on what kind of data? Arbitrary?
Vladimir Sovkov
Vladimir Sovkov 2020 年 12 月 14 日
編集済み: Vladimir Sovkov 2020 年 12 月 14 日
From your question, it is unclear what you mean by the data correlation at all. Correlation must depict an inter-influence of the data, implying their sets were measured simultaneously. E.g., you can measure at several time instants a voltage and an electric current at some resistor, this case you can estimate the correlation of those two quantities from a set of such couples. If your two sets of data were measured independently of each other, the term "correlation" makes no sense for them.
Ivan Mich
Ivan Mich 2020 年 12 月 14 日
My data , both of my teams , are numbers from 0-10
Mathieu NOE
Mathieu NOE 2020 年 12 月 14 日
there are two basic functions available , depending what you want to do
>> help xcorr
XCORR Cross-correlation function estimates.
C = XCORR(A,B), where A and B are length M vectors (M>1), returns the length 2*M-1 cross-correlation sequence C. If A and B are of different length, the shortest one is zero-padded. C will be a row vector if A is a row vector, and a column vector if A is a column vector.
help corrcoef
CORRCOEF Correlation coefficients. CORRCOEF(X) is a matrix of correlation coefficients formed from array X whose each row is an observation, and each column is a variable.
CORRCOEF(X,Y), where X and Y are column vectors is the same as CORRCOEF([X Y]).

サインインしてコメントする。

回答 (0 件)

質問済み:

2020 年 12 月 14 日

コメント済み:

2020 年 12 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by