Calculating number of specific value in a vector

2 visualizaciones (últimos 30 días)
Majbah
Majbah el 14 de Nov. de 2014
Respondida: Chad Greene el 14 de Nov. de 2014
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.

Respuesta aceptada

Chad Greene
Chad Greene el 14 de Nov. de 2014

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by