# Check if a vector and matrix are orthogonal (MATLAB)

37 views (last 30 days)

Show older comments

Dear,

I founded this program:

clear;clc;

Niter = 2; % number of iterations

EsN0_dB = -3:1:7; % SNR range to plot over

msg_num = 2000; % number of messages per SNR value

H =[1 1 1 1 0 0 0 0 0 0;

1 0 0 0 1 1 1 0 0 0;

0 1 0 0 1 0 0 1 1 0;

0 0 1 0 0 1 0 1 0 1;

0 0 0 1 0 0 1 0 1 1];

[rows, cols] = size(H);

[G_sys, H_sys] = gen_Gsys_from_H(H);

check = mod(G_sys*H_sys',2); % to see if orthogonal

But I don't have the function gen_Gsys_from_H(H)

I want just to understand if G_sys in this case is a vector or matrix. And what the result check must be to see if it is orthogonal or not ?

##### 5 Comments

Rik
on 25 Mar 2022

### Answers (1)

Mohammed Hamaidi
on 25 Mar 2022

See this :Low-density_parity-check_code

Orthogonality mean 'mod 2=0'

##### 0 Comments

### See Also

### Categories

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!