I need assistance with a MATLAB myMakeSize question
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Jason Robert Voris
il 17 Mar 2022
Modificato: Arif Hoq
il 17 Mar 2022
Need help with this question
Write a function with header [out] = myMakeSize10 (x), where x is an array and out is the first 10
elements of x if x has more than 10 elements, and out is the array x padded with enough zeroes
to make its length 10 if x has less than 10 elements.
Test Cases
>>A = myMakeSize10 (1:2)
A=
1 2 0 0 0 0 0 0 0 0
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Multidimensional Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!