How do you change the asterisks in the first string to the characters in the same positions in the second string?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have two strings for example
string1 = 'v**de***t'
string2 = 'eolehmors'
The outcome should be
out = 'voldemort'
Please do not hard code.
*Note: the input strings will always be the same length
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
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!