I have three array with 2x24, 2x23, 2x25 arrays
they asked to truncte this
Truncate any of the variables that contain more than the number of points in the shortest test-run (I.e. the smallest value of N)

1 件のコメント

Star Strider
Star Strider 2022 年 11 月 15 日
Ask them.
They may want all the arrays to be (2x23) arrays.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 11 月 15 日

0 投票

Use size() or numel() to find the existing lengths. Find the minimum of them. Use indexing like A(1:HOWLONG) to pull out part of the array.

カテゴリ

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

タグ

質問済み:

2022 年 11 月 15 日

回答済み:

2022 年 11 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by