m文件删除包含某字符串的这一行指令。

比如
ffffm.abc.def=8;
ffffm.ccc.def=8;
要删除包含abc这一指令行,即变成
ffffm.ccc.def=8;
如何实现》

 Respuesta aceptada

zabidan
zabidan el 15 de Mayo de 2023

0 votos

m文件本身就一文本文件,当成txt文件读进来,regexp删掉不用的行再写出呗

Más respuestas (0)

Categorías

Más información sobre 字符和字符串 en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 15 de Mayo de 2023

Respondida:

el 15 de Mayo de 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!