Matrix Dimensions must agree

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 个评论

size(Sw) and size(HSw) should match each other or to atleast perform implicit expansion addition.

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

产品

版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by