필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by