How do I convert this string ?
显示 更早的评论
Hello, I want a function that does the following processing: for example I have two strings :
S = '011011000000111000000010001'
B = '23352534'
The result I want to have is :
01 --> 2 caractères
101 --> 3 caractères
100 --> 3 caractères
00001 --> 5 caractères
11 --> 2 caractères
00000 --> 5 caractères
001 --> 3 caractères
0001 --> 4 caractères
In other words I want to divide the string S according to the number B. How to do this?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!