Confusion in matrix multiplication and dimensions

4 次查看(过去 30 天)
Dear all, this is the least beautiful representation of a signal in dB that I have ever seen) Does anybody know for to fix it?
The first graph is the same spectrum but
UPD: This was due to a typo in matrix multiplication... Check dimensions first....

采纳的回答

Star Strider
Star Strider 2024-11-25
Since there are several signals in the matrix being plotted, one option would be to plot them in 3D instead. Those optioons could include surf, waterfall, ribbon, and plot3.
  6 个评论
Sergei
Sergei 2024-12-4
编辑:Sergei 2024-12-4
I figured out the spectrum normalized was in reality a matrix, not a vector, exactly as you have said! It was due to a transposed by mistake matrix in multipllication by which the spectrum_normalized was obtained.
Thank you for your answers and explanations! Sorry for the confusion... Checking dimensions matters, I consider it as a lesson.
Star Strider
Star Strider 2024-12-4
As always, my pleasure!
No worries! I have confronted the same sort of problem in the past, that being the reason I saw it here.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by