📄 search_rnd.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 + -