MATLAB: How to change a quotation mark in a text string readed from an excel sheet string In an excel sheet, I have this string : Pression d'injection I want to change the quotation mark ' with a double quotation mark " Best Answer Christophe, do you mean: old_str = 'Pression d''injection' old_str = Pression d'injection new_str = strrep(old_str,'''','"') new_str = Pression d"injection Related SolutionsMATLAB: Problem with quotation marks (‘) Eval is evil ( https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval ) , you just need sprintf() . MATLAB: How to find strings in an excel file Thanks for your replyYes, I did.I also triedcolons = findstr(string, ':');Any idea of what could be wrong? Related QuestionHow open files with quotation marks? or how to remove the quotation markHow to change string to number in excel fileRemove quotation marks from a text stringHow to read xls file with char value
Best Answer