How to solve the code}
이전 댓글 표시
How to find GF(2^m)
clc;
clear all;
close all;
x1='1100110011';
x2='1111001100';
y0='0000000000';
H ='1111011010'
yy= xor(y0-'0',x1-'0');
y1=gfmul(yy,H);
I got an error as this: Error using gfmul All inputs must be real integers.
Error in hash1 (line 11) y1=gfmul(yy,H);
What correction should i make?
댓글 수: 1
KSSV
2017년 10월 23일
Read the doc here: https://in.mathworks.com/help/comm/ref/gfmul.html gfmul accepts double i.e matrix as input. You are inputting a string and logical which is not correct.
채택된 답변
추가 답변 (1개)
Walter Roberson
2017년 10월 23일
y1 = gfmul(yy, bin2dec(H));
댓글 수: 2
Darsana P M
2017년 10월 23일
Walter Roberson
2017년 10월 23일
gfmul needs three inputs, the third of which describes the galois field.
카테고리
도움말 센터 및 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!