1. How to perform XOR operation on 2 or more data packet arranged row-wise in the form of binary matrix using galois field. (2). Retrieve anyone packet again using combination
6 views (last 30 days)
Show older comments
clc
clearvars;
N = 1*10;
%Generate random number for messages
rng('default')
randNum = randi([0 10],1,4) % 10 rows 4-colums
x1 = randi([0 1],N,1) % are column vector, data packets binary message data for the 4 users
x2 = randi([0 1],N,1)
x3 = randi([0 1],N,1);
x4 = randi([0 1],N,1);
x = [x1'; x2'; x3'; x4']% 4-row vector
C = gf(randNum,10)% coefficients
z = C(1:2)
x12 = [x1';x2']
X3 = gf(x3',10)
EnP12 = z * gf(x12,10)% encoded packet 12
EnP3 = C(3) * X3 % Coefficent with data packet 3
% EnP123 = C * gf(x,10)% encoded packet 123
EnP123 = EnP12+ EnP3
% objective is to generate different commbinations and then recursively apply XOR to retrieve.
%% Any help to proceed with. Thanks & Regards
0 Comments
Answers (0)
See Also
Categories
Find more on Error Detection and Correction in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!