concatenate arrays of data in MATLAB -
i have set of features in cycle in matlab:
= step:indexmax posture(i) = 0; motionlevel(i) = randi(10)/100 ; positionx(i) = 50; positiony(i) = 50; positionz(i) = 50; features(i) = [posture(i) motionlevel(i) positionx(i) positiony(i) positionz(i)]; end
when arrive @ row definition of array features have error:
"in assignment a(i) = b, number of elements in b , must same."
i need concatenate features in 1 vector ( output can matrix rows , 5 colums...)
in code, try assign row vector single element of features
. index whole row of features
features(i,:) = [posture(i) motionlevel(i) ...
Comments
Post a Comment