set a variable equal to the count

8 次查看(过去 30 天)
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?

采纳的回答

Fangjun Jiang
Fangjun Jiang 2019-10-10
编辑:Fangjun Jiang 2019-10-10
numel()

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by