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