필터 지우기
필터 지우기

unique() function not working in simulink

조회 수: 8 (최근 30일)
JAI PRAKASH
JAI PRAKASH 2018년 6월 15일
댓글: JAI PRAKASH 2018년 6월 15일
Hello I have h(450x800).
unique(h) gives a column vector of all unique elements of h in Matlab.
But in Simulink it shows below error
"Unless 'rows' is specified, the first input must be a vector. If the vector is variable-size, then either the first dimension or the second must have a fixed length of 1. The input [] is not supported. Use a 1-by-0 or 0-by-1 input (e.g., zeros(1,0) or zeros(0,1)) to represent the empty set."
Can somebody know how can I get all the unique elements of a matrix?

채택된 답변

Walter Roberson
Walter Roberson 2018년 6월 15일
  댓글 수: 1
JAI PRAKASH
JAI PRAKASH 2018년 6월 15일
Wow. Sweet and simple answer. Thankyou

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by