Remove 'Matrix dimensions must agree'

2 次查看(过去 30 天)
BC15
BC15 2017-12-8
NAOI_tr=NAOI-Trend; matrix dimensions must agree.
  1 个评论
Adam
Adam 2017-12-8
What about it? How do you seriously expect any help when you give no information on anything?!
NAOI and Trend clearly have incompatible dimensions. Make them have the same dimensions and the error will be removed. How you do that in your particular case I have no idea.
Use the debugger to find out what size they are.

请先登录,再进行评论。

回答(1 个)

Star Strider
Star Strider 2017-12-8
The bsxfun (link) function may be able to help you.

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by