Sine wave with variable frequency

11 views (last 30 days)
Manu  M
Manu M on 31 May 2022
Edited: Sam Chak on 31 May 2022
How to create a sine wave with its frequency continuosly varying without change in amplitude in Simulink . When we tried to create it the amplitude is also varying . Kindly help us

Answers (1)

Sam Chak
Sam Chak on 31 May 2022
Edited: Sam Chak on 31 May 2022
Like this?
x = linspace(0, 6*pi, 6001);
y = cos(0)*sin(0.3*x.^2);
plot(x, y, 'linewidth', 1.5)
Use the Interpreted MATLAB Fcn block.

Categories

Find more on Simulink in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!