⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orthogonality.m

📁 LDPC codes .Using the matlab.
💻 M
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function lambda = Orthogonality(checkMatrix_H)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% @author   Andreas Waadt, 13. November 2005
% @param     checkMatrix_H : the parity check matrix of the code
% @return   lambda : the orthogonality of checkMatrix_H
% This function calculates the orthogonality (lambda) of a 
% Parity-Check-Matrix H (checkMatrix_H).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

sizeOfMatrix = size(checkMatrix_H);
j_rows = sizeOfMatrix(1);
n_columns = sizeOfMatrix(2);

		lambda = 0;
		scalar_product = 0;
		for column1 = 1 : 1 : n_columns-1
			for column2 = column1+1 : 1 : n_columns
				scalar_product = 0;
				for row = 1 : 1 : j_rows
					scalar_product = scalar_product + checkMatrix_H(column1,row) * checkMatrix_H(column2,row);
                end;
				if(scalar_product > lambda)
					lambda = scalar_product;
                end;
            end;
        end;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -