MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > working with matrix 

a=1 2 3 4 
"anil chandy" <anilvchandy@gmail.com> wrote in message <gnbbh6$946$1@fred.mathworks.com>... 
"anil chandy" 
"us" 
"anil chandy" <anilvchandy@gmail.com> wrote in message <gnbbh6$946$1@fred.mathworks.com>... 
its a mistake.. wat i actually meant was i ve a matrix A=[ 4 6 4 9 4 8 8 6 ] 
there is some problem when what i typed gets displayed in the forum... 
"its a mistake.. wat i actually meant was i ve a matrix A=[ 4 6 4 9 4 8 8 6 ] 
A=[ 4 6 4 9 4 8 8 6 ] 
Another approach calls sort instead of accumarray. 
idx = cumsum(logical([1 diff(B)])); 
and why ur using the variable x? 
"anil chandy" <anilvchandy@gmail.com> wrote in message <gnetra$327 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.