Confusion in matrix multiplication and dimensions

43 ビュー (過去 30 日間)
Sergei
Sergei 2024 年 11 月 25 日 19:41
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 日 20:02
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 約19時間 前
編集済み: Sergei 約19時間 前
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 約17時間 前
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 件)

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by