Encryption of a string
Afficher commentaires plus anciens
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’
Réponse acceptée
Plus de réponses (1)
Roger Nadal
le 24 Nov 2019
0 votes
3 commentaires
Walter Roberson
le 24 Nov 2019
output = input_message(1:n:end)
Roger Nadal
le 24 Nov 2019
Walter Roberson
le 24 Nov 2019
output = input_message(1:n+1:end)
Catégories
En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!