- Interpolate points in data 1, to make it 3000
- Correlation between data1 and data2
Correlate different type of data
2 views (last 30 days)
Show older comments
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 Comments
Mathieu NOE
on 14 Dec 2020
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]).
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!