필터 지우기
필터 지우기

如何得到一个由数字构成的向量中有几组数字?

조회 수: 2 (최근 30일)
DY
DY 2023년 12월 25일
답변: kei hin 2023년 12월 25일
例:
T的数值中包含14,9,16这3个种类的值,
T = [14 14 9 16 9 9 16 14];
如何对T进行函数处理,得到3这个答案?

채택된 답변

kei hin
kei hin 2023년 12월 25일
num = length(unique(T));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 数字滤波에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!