How to separate Vector in different Lenghts
Mostrar comentarios más antiguos
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 comentario
Walter Roberson
el 27 de Nov. de 2015
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!