What does this error mean and how can it be solved. 'Unable to perform assignment because the size of the left side is 1-by-2091 and the size of the right side is 1-by-2092'

1 次查看(过去 30 天)
Im getting the following error when I try to perform CCA on a 2097 x 3 data matrix. 'Unable to perform assignment because the size of the left side is 1-by-2091 and the size of the right side is 1-by-2092'.
Im using Dr Van Der Maatens drtoolbox. What does the error mean and how do I fix it?
Please assist.
  1 个评论
Sargondjani
Sargondjani 2021-6-23
Some where you try to do:
x = something;
where x is predefined to be 1x2091 vector, and something is a 1x2092 vector.
So my suggestion: check where the code sets the size of x, because probably it's of the wrong size. You might want to report the error with the writer of the toolbox.

请先登录,再进行评论。

回答(0 个)

类别

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

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by