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 个)
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!