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

📄 linear_interp.m

📁 波形信道的仿真
💻 M
字号:
% File: linear_interp.m
% Software given here is to accompany the textbook: W.H. Tranter, 
% K.S. Shanmugan, T.S. Rappaport, and K.S. Kosbar, Principles of 
% Communication Systems Simulation with Wireless Applications, 
% Prentice Hall PTR, 2004.
%
function [y] = linear_interp(x,m)
% This function takes the elements in a colium(row) vector x and 
% produces linearly interpolated vlaues in array y.
% Interpolation factor is m
nx = max(max(size(x)));
for n=1:nx
   data = x(n);
   for nn = 1:m
      index = (n-1)*m+nn;
      y(index) = data;
   end
end
% End of function file.

⌨️ 快捷键说明

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