How to split a complex vector(H) into equal parts using for loop ?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Betha Shirisha
le 20 Fév 2015
Commenté : Betha Shirisha
le 20 Fév 2015
vector H is large of dimension 720,i want to access first [1:12] elemnts then next [13:24] elements so on; I want to get access to all this subvectors.
0 commentaires
Réponse acceptée
James Tursa
le 20 Fév 2015
You could do it with simple indexing
k = The set you want to extract (1 = 1st set, 2 = 2nd set, etc)
V = H((1:12)+(k-1)*12); % The desired sub-vector set of 12 elements
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Language Fundamentals 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!