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 (2026). strrepInFile (https://in.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 LinuxCategories
Find more on File Operations in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
