Concatenating element- what the different?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Harel Harel Shattenstein
il 19 Lug 2015
Modificato: James Tursa
il 19 Lug 2015
What is the different between those code:
NewVector=[Vector1,element,vector2];
and
NewVector=[Vector1:element:vector2];
0 Commenti
Risposta accettata
James Tursa
il 19 Lug 2015
Modificato: James Tursa
il 19 Lug 2015
E.g.,
[1,3,10] is a three element vector with the elements 1, 3, and 10.
[1:3:10] uses the colon operator and is a four element vector starting with 1 and counting by 3 until 10 is reached or exceeded, so it has the elements 1, 4, 7, 10.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices 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!