set a variable equal to the count

how do I set a variable equal to the number of numbers in my array.
For example, if I have an array that contains 1981 numbers, and another array that contains 6229 numbers, how do I create a variable where k=1981 for the first array and k=6229 for the second and so on?

 Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 10 de Oct. de 2019
Editada: Fangjun Jiang el 10 de Oct. de 2019

0 votos

numel()

Más respuestas (0)

Categorías

Productos

Etiquetas

Preguntada:

el 10 de Oct. de 2019

Comentada:

el 10 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by