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()

1 件のコメント

Jordan Grapel
Jordan Grapel 2019 年 10 月 10 日
Thank you. Worked like a charm.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStructures についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by