Cross Co Relation Xcorr ? urgent Help Please !
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
i have two file text file of 64KB each. one is the plaintext and other is encrypted text i want to calculate the xcorr between them i use the following code
x=fopen('d:/plaintext.txt')
w=fread(x)
char(w)
y=fopen('d:/encryptedtext.txt')
v=fread(y)
char(v)
[c,lags] = xcorr(w,v)
plot(c,lags)
xlabel('Time Shift')
ylabel('Correlation Coefficient')
It shows graph but i dnt understand the output how matlab is processing the output how will i come to knw that my answer is right
HELP NEEDED URGENTLY
1 Kommentar
Walter Roberson
am 28 Jan. 2012
If the encrypted text is correlated with the original then the encryption process was not a good one.
Akzeptierte Antwort
nanren888
am 28 Jan. 2012
Try plot(lags,c) ? Is this what you are looking for? c(lags) is a similarity measure. Otherwise, maybe give a little more info?
Weitere Antworten (1)
Walter Roberson
am 28 Jan. 2012
This is not a resource for HELP NEEDED URGENTLY. If you need help urgently, then you should be hiring a consultant, such as http://www.mathworks.com/services/consulting/
Note: I am not a consultant, and I am not employed or contracted by MathWorks or any related company or organization in any capacity.
Disclaimer: I did receive a baseball-style hat from MathWorks once.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!