How to split a complex vector(H) into equal parts using for loop ?

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.

 채택된 답변

James Tursa
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개)

카테고리

도움말 센터File Exchange에서 Language Fundamentals에 대해 자세히 알아보기

질문:

2015년 2월 20일

댓글:

2015년 2월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by