79652743

Date: 2025-06-04 12:24:15
Score: 2.5
Natty:
Report link

Some observations:

t = 0:1/Fpoints:d; % this results in an array 1x101

While:

w1 = hann(16384); % results in an array 16384x1

Multiplying them together with * results in a matrix which is 16384x101. So here there is some room for improvement for sure.

I cannot really tell however what you actually want from your code currently, but let's assume the following:

Here's a demo for now, please tell me if this is not what you wanted to do?

N = 16384;
Fpoints = 1e9;
t = (0:N-1)/Fpoints;
w1 = hann(N)';
signal = sin(2 * pi * 5e7 * t);
windowedSignal = w1 .* signal; % w1 is a column, signal is row
figure(1);
subplot(3,1,1)
plot(t, signal)
ylabel("Signal")
xlim([0, t(end)])
subplot(3,1,2)
plot(t, w1)
xlim([0, t(end)])
ylabel("Window")
subplot(3,1,3)
plot(t, windowedSignal)
xlim([0, t(end)])
ylabel("Multiplied")

Demo

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (2.5): please tell me
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Tino D