Borrar filtros
Borrar filtros

How to replace double quotes with two single quotes in string in MATLAB R2020 ?

10 visualizaciones (últimos 30 días)
a = regexprep(' "C:\Users\User's PC\Desktop\note.txt" ' , ' " ' , ' ' );
a = regexprep(' "C:\Users\User's PC\Desktop\note.txt" ' , ' " ' , '');
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

Respuesta aceptada

Walter Roberson
Walter Roberson el 7 de Oct. de 2021
a = regexprep(' "C:\Users\User''s PC\Desktop\note.txt" ' , '"' , '''''' )
a = ' ''C:\Users\User's PC\Desktop\note.txt'' '

Más respuestas (0)

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!

Translated by