┌ Warning: Found `resolution` in the theme when creating a `Scene`. The `resolution` keyword for `Scene`s and `Figure`s has been deprecated. Use `Figure(; size = ...` or `Scene(; size = ...)` instead, which better reflects that this is a unitless size and not a pixel resolution. The key could also come from `set_theme!` calls or related theming functions.
└ @ Makie C:\Users\SHF_1\.julia\packages\Makie\6c4lt\src\scenes.jl:229
td =2* r0 / c # 目标延迟时间freq_rx = [t_now > td ? fc .+mod.(slope .* (t_now.-td),B) : fc for t_now in t] # 接收信号的频率angle_freq_rx = [sum(freq_rx[1:i].*dt) for i inaxes(t,1)] # 接收信号的角度频率Rx =cos.(2*pi.* angle_freq_rx) # 接收信号fig_rx =myfig(length_div_width=3,linewidth=28)ax_rx =Axis(fig_rx[1, 1], xlabel="Time (s)", ylabel="Amplitude",title="接收信号")lines!(ax_rx, t[1:Nr], Rx[1:Nr])ax_freq =Axis(fig_rx[1, 2], xlabel="Time (s)", ylabel="Frequency (GHz)", title="频率随时间的变化")lines!(ax_freq, t[1:Nr].+td, freq_rx[1:Nr]./1e9)fig_rx
┌ Warning: Found `resolution` in the theme when creating a `Scene`. The `resolution` keyword for `Scene`s and `Figure`s has been deprecated. Use `Figure(; size = ...` or `Scene(; size = ...)` instead, which better reflects that this is a unitless size and not a pixel resolution. The key could also come from `set_theme!` calls or related theming functions.
└ @ Makie C:\Users\SHF_1\.julia\packages\Makie\6c4lt\src\scenes.jl:229
┌ Warning: Found `resolution` in the theme when creating a `Scene`. The `resolution` keyword for `Scene`s and `Figure`s has been deprecated. Use `Figure(; size = ...` or `Scene(; size = ...)` instead, which better reflects that this is a unitless size and not a pixel resolution. The key could also come from `set_theme!` calls or related theming functions.
└ @ Makie C:\Users\SHF_1\.julia\packages\Makie\6c4lt\src\scenes.jl:229
end_index =round(Int,(maximum(t)-td)/maximum(t)*Nr)IF_angle_freq_all = [sum((freq[1:i].-freq_rx[1:i]).*dt) for i inaxes(t,1)]IF_angle_freq = IF_angle_freq_all[end_index+1:Nr] # 中频信号的角度频率IFx =cos.(2*pi.* IF_angle_freq) # 中频信号fig_ifx =myfig(length_div_width=3,linewidth=28)ax_ifx =Axis(fig_ifx[1, 1], xlabel="Time (s)", ylabel="Amplitude",title="接收信号")lines!(ax_ifx, t[end_index+1:Nr], IFx)IFX_fft = (abs.(fft([i>length(IFx) ? 0.0: IFx[i] for i in1:Nr])))ax_ifx =Axis(fig_ifx[1, 2], xlabel="频率 (GHz)", ylabel="Amplitude", title="FFT ")lines!(ax_ifx, IFX_fft[1:round(Int,Nr/2)]./Nr)fig_ifx
┌ Warning: Found `resolution` in the theme when creating a `Scene`. The `resolution` keyword for `Scene`s and `Figure`s has been deprecated. Use `Figure(; size = ...` or `Scene(; size = ...)` instead, which better reflects that this is a unitless size and not a pixel resolution. The key could also come from `set_theme!` calls or related theming functions.
└ @ Makie C:\Users\SHF_1\.julia\packages\Makie\6c4lt\src\scenes.jl:229
┌ Warning: Found `resolution` in the theme when creating a `Scene`. The `resolution` keyword for `Scene`s and `Figure`s has been deprecated. Use `Figure(; size = ...` or `Scene(; size = ...)` instead, which better reflects that this is a unitless size and not a pixel resolution. The key could also come from `set_theme!` calls or related theming functions.
└ @ Makie C:\Users\SHF_1\.julia\packages\Makie\6c4lt\src\scenes.jl:229