No BSD License  

Highlights from
parchk

2.33333

2.3 | 3 ratings Rate this file 0 Downloads (last 30 days) File Size: 873 Bytes File ID: #8606

parchk

by Jim Simos

 

30 Sep 2005 (Updated 03 Oct 2005)

Adds an overall parity check bit to the input Code.

| Watch this File

File Information
Description

Adds an overall parity check bit to the input code C1.The output code C2 is the extended code.C1 must be a binary fixed length block code.
 
For example if C1=[1 0 0 1 ; 1 1 1 0] then
C2=parchk(C1),returns C2=[1 0 0 1 0 ; 1 1 1 0 1].

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
03 Oct 2005 urs (us) schwarz

could this not be simplified?
% some data
c=[1 0 0 1;1 1 1 0;1 1 1 1];
% the engine
cp=[c,[bitand(sum(c,2),1)]]
just a thought
us

04 Oct 2005 Jim Simos

Dear Urs,

        Thanks,for your feedback.You are absolutely right.In the present form,your suggestion ovverides my function :-)
I will upload a new extended version,shortly.May i incorporate your thoughts?
Let me know.

Friendly,Jim.

11 Oct 2005 Duane Hanselman

If this function can be simplified as shown by Urs, remove your implementation entirely. Since Urs came up with the solution, let him post it.

12 Oct 2005 Jim Simos

For your information,I contacted Urs via email and proved him,tha his implementation is wrong.You can verify it,if in his implentation,you take another step.I am still waiting for reply..I DIDN'T reply or repost so far,from respect to Urs.As for you,don't jump to conclusions..better read first a Coding Theory Book..

31 Oct 2005 urs (us) schwarz

i just answered jim's email and we'll see what happens...

08 Nov 2005 Nick Cheilakos  
Please login to add a comment or rating.
Updates
03 Oct 2005

Update file details

Tag Activity for this File
Tag Applied By Date/Time
coding theory Jim Simos 22 Oct 2008 08:01:21
information theory Jim Simos 22 Oct 2008 08:01:21
coding and information theory Jim Simos 22 Oct 2008 08:01:21
parity check bit Jim Simos 22 Oct 2008 08:01:21
input code Jim Simos 22 Oct 2008 08:01:21
c1 Jim Simos 22 Oct 2008 08:01:21
c2 Jim Simos 22 Oct 2008 08:01:21

Contact us at files@mathworks.com