Matlab code of image

4 次查看(过去 30 天)
rosee
rosee 2024-2-21
评论: rosee 2024-2-21
Hello, could you assist me in creating this figure in MATLAB?
  5 个评论
DGM
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.
rosee
rosee 2024-2-21
Thank you, I think this is the real part of DFT Matrix.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by