Guest User

Untitled

a guest
Apr 16th, 2023
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. M = 100;
  2. N = 101;
  3. x = reshape(1:M*N, [M, N]);
  4. h = reshape(1:M*N, [M, N]) + 1j;
  5. out = zeros(N, 1);
  6. h = ifftshift(conj(h), 2);
  7. for i=1:N
  8. out(i) = sum(x.*circshift(h, i - 1, 2), 'all');
  9. end
  10.  
Add Comment
Please, Sign In to add comment