I need to input varying frequency in sine wave how can i do that?
조회 수: 2 (최근 30일)
이전 댓글 표시
Actually i have a varying frequency output which i should input into sine. I m having problems please help me...
답변 (2개)
Image Analyst
2016년 6월 29일
Use chirp() or do it manually like this:
numPoints = 400;
freqs = linspace(.01, .05, numPoints);
x = 1 : numPoints;
y = sin(2 * pi * freqs .* x);
plot(x, y, 'b-', 'LineWidth', 2);
grid on;
% Enlarge figure to full screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0 0 1 1]);
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!