How we can define Swept sine, chrip function, Exponential Time funcation in MATLAB?
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I am wondering if there is a direct way in MATLAB to plot Swept sine function or Exponential Time function like the images below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/982610/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/982615/image.jpeg)
I checked the chrip function that is available in MATLAB but it does not solve my problem.
Thanks in advance!
0 个评论
采纳的回答
Roshan Swain
2022-5-4
I understand that you wish to know whether swept sine or exponential swept sine function is available in MATLAB.
MATLAB provides “frest.Chirp” for Swept Sine and “sweeptone” for Exponential Swept Sine.
Refer the sample code snippet to plot a swept sine function:
% Swept sine function
>>input = frest.Chirp('Amplitude', 1, 'FreqRange', [10 100], 'InitialPhase',270, 'NumSamples', 100, 'SweepMethod', 'logarithmic')
>>plot(input)
Refer the sample code snippet to plot a Exponential swept sine function:
%exponential time function
>>fs = 1000;
>>excitation = sweeptone(9,6,fs,’ExcitationLevel’,1, 'SweepFrequencyRange',[10 500]);
>>plot(excitation)
Refer the following documentation to learn more:
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Time Series 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!