フィルターのクリア

Difference between size '[:140 x 1]' and 'size [140 x 1]'

1 回表示 (過去 30 日間)
Zac li
Zac li 2018 年 11 月 2 日
回答済み: Honglei Chen 2018 年 11 月 2 日
Diagnostics says:'Size mismatch. Input 2 expected value of size [:140 x 1]. Found size [140 x 1].'
what is the difference between '[:140 x 1]' and 'size [140 x 1]'?
  2 件のコメント
madhan ravi
madhan ravi 2018 年 11 月 2 日
which toolbox ?
KSSV
KSSV 2018 年 11 月 2 日
Probably you should transpose the result and use as input.

サインインしてコメントする。

回答 (1 件)

Honglei Chen
Honglei Chen 2018 年 11 月 2 日
I assume this is what you get in your code generation report? [:140x1] means that the signal is a column vector with an upper bound of 140 elements, i.e., it could change but has at most 140 elements. On the other hand, [140x1] means the column vector is fixed size with 140 elements in it. You can find more information in the following link
HTH

カテゴリ

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