- spectrogram misspelled
- wrong use of the subplot, it's before not after doing the drawing
- bad parameters on the spectrogram function
facing problem in plotting spectrogram.everytym an error occurs irrespective of the correct coding
8 次查看(过去 30 天)
显示 更早的评论
i am unable to plot the spectrogram of a given signal.please help me.i am using the following codes.... t=0:0.001:2; y=chirp(t,0,1,150); spectogram(y,256,1e3,256,250,'y axis'); subplot(2,1,1); title('Quadratic Chirp');
pls help..
0 个评论
采纳的回答
Paulo Silva
2011-7-3
t=0:0.001:2;
subplot(2,1,1); title('Quadratic Chirp');
y=chirp(t,0,1,150);
spectrogram(y,256,250,256,250,'yaxis');
6 个评论
Paulo Silva
2011-7-4
that's what you get when using the names of functions on scripts, bad idea, same goes for variables with same name of functions, bad idea!
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AI for Signals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!