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!