A = [126126,138154,137146]
Output i want is A = [126,126,138,154,137,146]
No products are associated with this question.
help rem
help floor
A = [126126, 138154,137146] B = [floor(A/1000) ; rem(A,1000)] B = B(:).' % for cosmetic purposes only
out=str2num(reshape(num2str(A')',3,[])')'
2 Comments
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/55763#comment_115453
Praveen, please accept answers if they help you. I have looked at your question history and you never seem to do that.
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/55763#comment_115544
hey i do accept...whn i find right answers... thank you