필터 지우기
필터 지우기

How to correlate signal

조회 수: 3 (최근 30일)
Max Bernstein
Max Bernstein 2016년 8월 28일
댓글: Thorsten 2016년 8월 30일
Hello,
I have two instantaneous voltage signals in vector A and B, and one current signal in vector C. I'm trying to understand whether there are any correlations between the data vectors A, B, C, and plot the correlation. For example, if the current in C increases in pk-pk over 5 seconds, will the trend of the pk-pk of A or B also increases or decreases. What is the best way to do this in matlab? I have been reading about the corrplot function but I dont have that particular toolbox so I cant generate the plots to see correlation. Will using xcorr gives me the correlation between the pk-pk or just individual data points?
Thank you, Max

답변 (1개)

Thorsten
Thorsten 2016년 8월 29일
[r, p] = corrcoef([A(:) B(:) C(:)];
  댓글 수: 2
Max Bernstein
Max Bernstein 2016년 8월 29일
Thank you. I have tried that and was able to get the correlation. I'm also trying to generate a plot similar to the corrplot. Is there anyway I can do this without the econ toolbox?
Thorsten
Thorsten 2016년 8월 30일
You probably have to do if yourself, or search for something in the Matlab FileExchange.

댓글을 달려면 로그인하십시오.

카테고리

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