How do i correct for this

3 ビュー (過去 30 日間)
Olufemi Ologun
Olufemi Ologun 2022 年 5 月 26 日
回答済み: Image Analyst 2022 年 5 月 27 日
Data sets demeaned
Error using .*
Matrix dimensions must agree.
Error in SC_BA_invert (line 59)
bou=times(bou,w2); %the original gravity input matrix, previously demeaned, is multiplied by the cosine window
  1 件のコメント
Jan
Jan 2022 年 5 月 26 日
The error message is clear: The sizes of the variables bou and w2 do not match.
Without seeing the code it is impossible to guess, why this is the case.

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2022 年 5 月 27 日
whos bou
whos w2
if the number of rows of bou don't exatly equal the number of rows of w2, AND the number of columns of bou don't exactly match the number of columns of w2, then they are not the same shape and you can't do an element-by-element multiplication.

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by