Encryption of a string
显示 更早的评论
I have to create a function which take 2 input one is n number and on e is message if I call function (4,’hi’) it will return next 4 char of ‘h’ and ‘i’ so output will be ‘lm’
采纳的回答
更多回答(1 个)
Roger Nadal
2019-11-24
0 个投票
3 个评论
Walter Roberson
2019-11-24
output = input_message(1:n:end)
Roger Nadal
2019-11-24
Walter Roberson
2019-11-24
output = input_message(1:n+1:end)
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!