Subscripted assignment dimension mismatch

1 回表示 (過去 30 日間)
JM
JM 2013 年 3 月 18 日
What does this error mean?

採用された回答

Wayne King
Wayne King 2013 年 3 月 18 日
It comes from trying to assign something of one size to a set of indices that does not match that size. For example.
X = randn(10,10);
Y = randn(3,3);
X(1:2,1:2) = Y;
The block in X is 2 rows by 2 columns. The above tries to assign a matrix of numbers that is 3 rows by 3 columns.

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by