- plot_signal = scatter(x, label = false, title = "Time domain", )
- plot_fft = scatter(0:N-1, points_in_freq_domain .|> norm, label = false, title = "Frequency domain: F(n): Magnitude")
- plot(plot_signal, plot_fft, layout = (2, 1))
+ plot_signal = scatter(x, label = false, title = "Time domain for one period", )
+ plot_fft = scatter(0:N-1, points_in_freq_domain .|> norm, label = false, title = "Frequency domain for one period: F(n): Magnitude")
+
+ points_in_freq_domain_2_periods = [analysis(f, k, 2N) for k ∈ 0:2N-1]
+ plot_signal_2_periods = scatter([x; x], label = false, title = "Time domain for two periods", )
+ plot_fft_2_periods = scatter(0:2N-1, points_in_freq_domain_2_periods .|> norm, label = false, title = "Frequency domain for two periods: F(n): Magnitude")
+
+ plot(plot_signal, plot_fft, plot_signal_2_periods, plot_fft_2_periods, layout = (4, 1), size = (800, 800))