How do I select specific rows in a 1x15 matrix?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
If I havea 1x15 matrix, and I want to call elements 7,8,9 and 14, how would I go about putting it in the second line of code within parenthesis?
Soln = [AB; AI; BI; BC; CH; CI; CD; DE; EH; EG; EF; FG; DH; HI; GH]
Soln(???)
Réponses (1)
Cris LaPierre
le 18 Oct 2021
2 commentaires
Cris LaPierre
le 18 Oct 2021
Modifié(e) : Cris LaPierre
le 18 Oct 2021
That is covered in Ch 5, but enclose all the numbers in square brackets.
A=1:10;
b=A([3:5 8])
Voir également
Catégories
En savoir plus sur Resizing and Reshaping Matrices 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!