Matlab code of image
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello, could you assist me in creating this figure in MATLAB?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1623038/image.png)
댓글 수: 5
DGM
2024년 2월 21일
Well it's been over a decade since I touched signals calc, but it's obviously a cosine sweep. Your spectrogram looks like
w = 3; % just a guess
t = linspace(0,w,1000);
f = linspace(0,w,1000).';
s = cos(2*pi*f.*t);
pcolor(t,f,s)
shading flat
So maybe you could start with that and work back to time domain.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!