I need to input varying frequency in sine wave how can i do that?

1 回表示 (過去 30 日間)
Abhishek Sarakanam
Abhishek Sarakanam 2016 年 6 月 29 日
回答済み: Image Analyst 2016 年 6 月 29 日
Actually i have a varying frequency output which i should input into sine. I m having problems please help me...
  1 件のコメント
José-Luis
José-Luis 2016 年 6 月 29 日
Could you please try to clarify what you mean?

サインインしてコメントする。

回答 (2 件)

Greg Dionne
Greg Dionne 2016 年 6 月 29 日
Try looking at the function "vco" in the Signal Processing Toolbox

Image Analyst
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]);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by