plot a inear sweep & stepped sweep
이전 댓글 표시
Hello,
I am try to plot a linear sweep & stepped sweep. (The attached picture)
condition:
Freauency range from 20Hz-20kHz
Time from 0-100ms

How the code can do it ? Tnanks!
댓글 수: 4
Rik
2023년 7월 1일
What have you tried so far? And do you only want to have the plot, or do you need the time,frequency pairs at some resolution?
Would the built-in chirp function help you?
help chirp
ting po chun
2023년 7월 2일
답변 (1개)
KALYAN ACHARJYA
2023년 7월 2일
편집: KALYAN ACHARJYA
2023년 7월 2일
t=0:8:100;
f=linspace(20,2000,length(t));
stairs(t,f);
xlabel('Time');
ylabel('Frequency');
hold on
plot(0:100,linspace(20,2000,101))
hold off
If the use of the inbuilt stair function is not allowed, modify the code according to the requirements, finding alternative methods such as the step function or other approaches can be done.
카테고리
도움말 센터 및 File Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




