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 Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

질문:

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