Confusion in matrix multiplication and dimensions

조회 수: 3 (최근 30일)
Sergei
Sergei 2024년 11월 25일
댓글: Star Strider 2024년 12월 4일
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개)

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by