How can i write x ∈ A
조회 수: 7 (최근 30일)
이전 댓글 표시
B = [30 60 30 60 60 30];
[No,Th] = hist(B,unique(B));
A = Th;
i want to right in other program
x ∈ A
댓글 수: 5
John D'Errico
2015년 12월 19일
Yes. We know what set membership means in mathematics. But what you are not telling us is what you want to do. Explain yourself clearly.
답변 (1개)
Walter Roberson
2015년 12월 19일
편집: Walter Roberson
2015년 12월 19일
for x = reshape(A,1,[])
... do something ...
end
댓글 수: 1
Walter Roberson
2015년 12월 19일
unique(x) gives the elements of X. In the context you give in your comment, the values are going to be the same as 1 : length(unique(B))
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!