what is meaning of this plzz tell me
조회 수: 1 (최근 30일)
이전 댓글 표시
feat=[]; class=[];
댓글 수: 0
채택된 답변
Star Strider
2018년 3월 21일
Those assignments set the ‘feat’ and ‘class’ variables to empty arrays [].
Note that class (link) is a MATLAB function, and assigning a variable the same name ‘overshadows’ it. This will cause problems later if you want to use the class function.
댓글 수: 2
추가 답변 (1개)
Walter Roberson
2018년 3월 21일
When you assign [] to an entire variable, it assigns a double precision value that is 0 rows by 0 columns -- the empty double precision array.
When you assign [] to an indexed variable, such as feat(3,:) = [], then the meaning is quite different: it means to delete the indicated portion of the variable.
참고 항목
카테고리
Help Center 및 File Exchange에서 Assembly에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!