How to split a complex vector(H) into equal parts using for loop ?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
James Tursa
2015-2-20
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numeric Types 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!