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
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Error Detection and Correction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!