How to separate Vector in different Lenghts
이전 댓글 표시
Hello,
i have one Vector CamData(1:128)
and I want to separate it to two different Vectors:
CamDataNEW1 = CamData(10:Value)
CamDataNEW2 = CamData(Value+1:118)
I program for an µC so, but i don't want to allow variable Sized Signals (processing Speed).
So i am searching for a Solution with preallocated Variables.
camDataNew1 = cell(1:128);
camDataNew2 = cell(1:128);
camDataNew1 = arr_CameraDiff(10:n_TrackMiddle);
camDataNew2 = arr_CameraDiff(n_TrackMiddle+1:118);
After this I want to look for Minima in each Part and get the Index.
How can I accomplish this?
Thank you for helping out!
댓글 수: 1
Walter Roberson
2015년 11월 27일
cell(1:128) would try to create a cell array with 128 dimensions, a 1 x 2 x 3 x 4 x 5 x 6 x ... x 128 cell array.
cell arrays are dynamic structures that are effectively variable sized signals, which you do not wish to use.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!