[matlab] Add Cyclic Prefix and Remove Cyclic Prefix Functions

Viewer

copydownloadembedprintName: Add Cyclic Prefix and Remove Cyclic Prefix Functions
  1. function y = addCycPrefix(u)
  2.     cyc_len = 30;
  3.     prefix = u(end-cyc_len+1:end, :);
  4.     y = [prefix; u];
  5. end
  6.  
  7. function y = rmCycPref(u)
  8.     cyc_len = 30;
  9.     y = u(cyc_len+1:end, :);
  10. end
  11.  

Editor

You can edit this paste and save as new:


File Description
  • Add Cyclic Prefix and Remove Cyclic Prefix Functions
  • Paste Code
  • 18 Sep-2021
  • 198 Bytes
You can Share it: