photo

Guy


DLR e.V.

Active since 2012

Followers: 0   Following: 0

Message

Hello everyone.
I am trying to use both xcorr(var1,var2,0,'coeff' and corrcoef in order to get a correlation coefficient of two vectors (I want to see how "similar" they are).

The thing is, sometimes I need to insert a vector of zeros into that calculation and the I get NaN as a result.

It is very important for me to be able to correlate between a vector of zeros and a vector of really small numbers ( both of same length, of course), and get a relatively good correlation between the two (relative to a vector of ones with a vector of small numbers, for example).

Statistics

MATLAB Answers

2 Questions
0 Answers

RANK
212,905
of 301,186

REPUTATION
0

CONTRIBUTIONS
2 Questions
0 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
0

RANK
 of 21,188

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 173,292

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 1

View badges

Feeds

View by

Question


How to fit the best line
Hello, I have a problem trying to choose out of two vectors the one vector that is most similar to a sample vector. My funct...

13 years ago | 1 answer | 0

1

answer

Question


NaN result on xcorr?
Hello everyone. I am trying to use both xcorr(var1,var2,0,'coeff' and corrcoef in order to get a correlation coefficient of two...

13 years ago | 1 answer | 0

1

answer