Matrix Dimensions must agree

4 次查看(过去 30 天)
sami ullah
sami ullah 2020-9-20
Error using +
Matrix dimensions must agree.
Error in embed_dwt_hsd_svd (line 43)
HSw_hat = alpha.*Sw + HSw;

回答(1 个)

madhan ravi
madhan ravi 2020-9-20
编辑:madhan ravi 2020-9-20
HSw_hat = bsxfun(@plus, alpha.*Sw, HSw);
  1 个评论
madhan ravi
madhan ravi 2020-9-20
编辑:madhan ravi 2020-9-20
size(Sw) and size(HSw) should match each other or to atleast perform implicit expansion addition.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

产品


版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by