plot autocorrelation
显示 更早的评论
Hello guys, might be sort of a beginners question for most of you guys but i am really having trouble tat ploting an autocorrelation function like the example one mentioned in the help section of the function browser "autocorr(econ)"? Any chance somebody could give me a hint on how to plot it alongside with the bounds and label x/y according to the example? many thanks stefan
采纳的回答
更多回答(1 个)
Yashwanth
2026-9-2,15:20
%ECE24063
clc;
clear;
close all;
% Parameters
Am = 5;
fm = 2e3;
fc = 10 * fm;
t = 0:1e-6:2e-3;
% Message signal
m = Am * cos(2*pi*fm*t);
% Modulation index values
beta_values = [0.5, 2, 10];
figure;
for i = 1:length(beta_values)
beta = beta_values(i);
% Frequency Modulated Signal
s = cos(2*pi*fc*t + beta * sin(2*pi*fm*t));
subplot(3,1,i);
plot(t, s);
title(['FM Signal for \beta = ', num2str(beta)]);
xlabel('Time');
ylabel('Amplitude');
end
类别
在 帮助中心 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!