how to extend each element in a cell string array to fixed size?
5 次查看(过去 30 天)
显示 更早的评论
I have a cell string array A={'123', '4567', 67894'}, I want to extend each element to a fixed size, like size of 8, and fill in '0' in front. Like: A={'00000123', '00004567', '00067894'}. Can I get help? Thanks!
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!