How do you change the asterisks in the first string to the characters in the same positions in the second string?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alice
el 23 de Sept. de 2022
Comentada: Alice
el 23 de Sept. de 2022
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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!