필터 지우기
필터 지우기

what is meaning of this plzz tell me

조회 수: 3 (최근 30일)
Mohd Shahrukh
Mohd Shahrukh 2018년 3월 21일
댓글: Star Strider 2018년 3월 26일
feat=[]; class=[];

채택된 답변

Star Strider
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
Mohd Shahrukh
Mohd Shahrukh 2018년 3월 26일
Thnkuu so much
Star Strider
Star Strider 2018년 3월 26일
As always, my pleasure.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by