strrepInFile

version 1.0.0.0 (7.02 KB) by Jerome Briot
Find and replace substring in file

48 Downloads

Updated 8 Feb 2017

View License

strrepInFile works as the strrep function but replaces substring in file.
For example, strrepInFile simplifies import of numeric data with comma as decimal mark :

strrepInFile('data.txt', ',', '.');
dlmread('new_data.txt', ';')

Cite As

Jerome Briot (2022). strrepInFile (https://www.mathworks.com/matlabcentral/fileexchange/61495-strrepinfile), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!