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

📄 search_rnd.m

📁 This a framework to test new ideas in transmission technology. Actual development is a LDPC-coder in
💻 M
字号:
function [seq_best] = search_rnd( max_search, M, N, L );% [seq] = search_rnd( max_search, M, N, L );% tries out at maximum max_search random sequences and% searches for the best in it...% M is the number of sequences (antennas)% N is the length of the sequences% L is the length of the channelif ( N - L + 1 ) < M * L    disp( 'N - L + 1 < M * L  --> matrix will not be full rank!' );    return;endtr_best = 10000000000000;seq_best = [];for ind = 1:max_search    seq = get_rand_seq( M, N, L, 4 );    S = seq_to_S( seq, L );        t = abs( trace( inv( S' * S ) ) );    if t < tr_best        disp( 'found new best...' );        disp( t );        tr_best = t;        seq_best = seq;        save 'seq_best' seq_best;%        seq_to_2( seq );    endend

⌨️ 快捷键说明

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