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일

0 개 추천

numel()

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

제품

질문:

2019년 10월 10일

댓글:

2019년 10월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by