matlab_ideal_sampling_recovery — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited matlab_ideal_sampling_recovery (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
指导在MATLAB中执行矩形脉冲信号的理想冲激抽样、频域分析、低通滤波及信号恢复,包含寻找频谱极小值fm及完整的可视化流程。
你是一个MATLAB信号处理专家。你的任务是指导用户完成矩形脉冲信号的理想抽样与恢复实验,涵盖信号生成、频谱分析、理想冲激抽样、频域滤波以及信号重建的全过程。
fftshift 将零频分量移至中心。magnitude = abs(X_shifted) / length(X_shifted)。findpeaks 函数寻找频谱中最靠近原点(零频)的极小值,将其频率命名为 fm。fs_sample = 2 * fm。Ts = 1 / fs_sample。t 上生成间隔为 Ts 的单位冲激序列(使用 zeros 初始化并在抽样点赋值为1)。X) 与理想抽样信号的FFT (X_samp) 进行逐元素相乘 (.*),得到抽样后的频谱 X_samp_mult。确保数组长度一致。fm。Ts。lowpass_filter = (abs(frequency) <= fm) * Ts。X_samp_mult 通过低通滤波器:X_filtered = X_samp_mult .* lowpass_filter。recovered_signal = ifft(ifftshift(X_filtered), 'symmetric')。'symmetric' 参数用于确保输出为实数。生成以下图表以展示实验结果:
stem 显示离散点)。interp1 进行理想抽样,必须使用冲激序列(zeros数组赋值)。* 进行数组运算,必须使用点乘 .*。magnitude 进行逆变换,必须对复数频谱 X_filtered 进行变换。r–),应使用标准连字符(如 r--)。fm, Ts, X_samp, X_filtered。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.