How do I write an expression that refers to only the elements that have odd-number/odd-number index subscripts in a vector?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I first established a varibale
myend = randi([2,6])
I then established a vector based on this random interger
myvec = 0:0.5:myend
how would I write an expression to show the elements that have an odd-number subscript/odd-number index in the vector myvec?
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!