?? interpolate_4x2.m
字號:
function complete=interpolate_4x2(index,value,method,TxNum);
% index: value's point location
% value: underlying function
% method: used in matlab funcion interp1,such as 'linear','spline','cubic'
% TxNum: string indicating Tx Antenna number
switch TxNum,
case 'Tx1',
complete=interp1(index,value,1:1701,method);
complete=[complete,complete(end),complete(end)];
case 'Tx2',
complete=interp1(index,value,2:1702,method);
complete=[complete(1),complete,complete(end)];
case 'Tx3',
complete=interp1(index,value,3:1703,method);
complete=[complete(1),complete(1),complete];
case 'Tx4', % Need remove DC before interpolate
value(213)=[];
index(213)=[];
complete=interp1(index,value,4:1700,method);
complete=[complete(1),complete(1),complete(1),complete,complete(end),complete(end),complete(end)];
otherwise,
error('Unknown Tx Antenna!');
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -