Split array values into 2 elements
이전 댓글 표시
A = [126126,138154,137146]
Output i want is A = [126,126,138,154,137,146]
댓글 수: 2
José-Luis
2012년 12월 5일
Praveen, please accept answers if they help you. I have looked at your question history and you never seem to do that.
채택된 답변
추가 답변 (2개)
Azzi Abdelmalek
2012년 12월 5일
편집: Azzi Abdelmalek
2012년 12월 5일
out=str2num(reshape(num2str(A')',3,[])')'
Steve
2012년 12월 5일
0 개 추천
The function you want is reshape:
A = reshape(A, 1, [])
This gives you the output you want (A = [126,126,138,154,137,146])
카테고리
도움말 센터 및 File Exchange에서 Numbers and Precision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!