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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -