Encryption of a string
Show older comments
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’
Accepted Answer
More Answers (1)
Roger Nadal
on 24 Nov 2019
0 votes
3 Comments
Walter Roberson
on 24 Nov 2019
output = input_message(1:n:end)
Roger Nadal
on 24 Nov 2019
Walter Roberson
on 24 Nov 2019
output = input_message(1:n+1:end)
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!