Skip to content

Commit a8eee72

Browse files
committed
Minimum A should be 1 for PDCCGH.
1 parent 8cc5fc4 commit a8eee72

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

PDCCH_decoder.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151

5252
addpath 'components'
5353

54+
if A == 0
55+
error('polar_3gpp_matlab:UnsupportedBlockLength','A should be no less than 1.');
56+
end
5457
if A > 140
5558
error('polar_3gpp_matlab:UnsupportedBlockLength','A should be no greater than 140.');
5659
end

PDCCH_encoder.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151

5252
A = length(a);
5353

54+
if A == 0
55+
error('polar_3gpp_matlab:UnsupportedBlockLength','A should be no less than 1.');
56+
end
5457
if A > 140
5558
error('polar_3gpp_matlab:UnsupportedBlockLength','A should be no greater than 140.');
5659
end

0 commit comments

Comments
 (0)