make_orthotrain.m

来自「这个程序主要是实现空时编码的matlab编解码仿真。」· M 代码 · 共 33 行

M
33
字号
function [train_seq1, train_seq2]=make_orthotrain(train_length)%   [train_seq1, train_seq2]=make_orthotrain(train_length)%%	Variable:	Explanation:%	output1   - %   output2   -%   %	input1   - %   input2   -%   %   Short Theoretical Background for the Function:%%   Creates two orthogonal training-sequences of length train_length.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%% Function part of simulation for Space-Time%%% coding project, group Grey-2001.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   Author: %   Date: %   Version: %   Revision (Name & Date & Comment):%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%train_seq1 = random_training(train_length);train_seq2 = train_seq1;train_seq2(1:2:end) = abs(train_seq1(1:2:end) - 1); % Inverses every second bit% figure(20), subplot(1,2,1), plot(xcorr(train_seq1,train_seq1)), subplot(1,2,2), plot(xcorr(train_seq2,train_seq2));

⌨️ 快捷键说明

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