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 Kommentar

Star Strider
Star Strider am 15 Nov. 2022
Ask them.
They may want all the arrays to be (2x23) arrays.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 15 Nov. 2022

0 Stimmen

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.

Kategorien

Tags

Gefragt:

am 15 Nov. 2022

Beantwortet:

am 15 Nov. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by