What is Truncate ?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Réponses (1)
Walter Roberson
le 15 Nov 2022
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.
0 commentaires
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!