I am working with some matlab code I inhereted from another person, I dont understand the meaning of the line q =[q; qi’]. I feel like i should be able to just remove it, so that q = distribuc…
function [ q ] = ObtainHistogramForEachTarget( state, numberOfTargets, image, q )
for i=1 : numberOfTargets
qi = distribucion_color_bin_RGB2(state(i).xPosition,state(i).yPosition,state(i).size,image,2);
q = [q; qi'];
end
end
Can anyone explain this to me?
MATLAB has several built-in functions to manipulate matrices. The special character,
', for prime denotes the transpose of a matrix.The statement
A = [ 1 2 3;4 5 6;7 8 9]'produces the matrixhope this helps