Calculating number of specific value in a vector

조회 수: 2 (최근 30일)
Majbah
Majbah 2014년 11월 14일
답변: Chad Greene 2014년 11월 14일
Hi,
I have a vector A=[11 5 2 6 8 9 11 3]. I want to know how many 11 is in the vector (i.e., 2). How can I do that in MATLAB?
Thanks in advance.

채택된 답변

Chad Greene
Chad Greene 2014년 11월 14일

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by