editing large text file
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
In Notepad (or equivalent softwares) there is a feature that does search a character, edit it, and "Replace All".
How I can edit a text file by doing Replace All using Matlab?
Example: assume I have a text file that has 300 characters like "HjY". I want to replace all these characters with "HjY(i)" in an automated way.
댓글 수: 2
KSSV
2018년 9월 6일
It depends on how the file is.....you have to attach a file format so that we can help you.
답변 (1개)
ahmed nebli
2018년 9월 6일
this is how is suggest you can do : -import your file/-use a for loop to search for 'H' and after it a 'j' and after it a 'Y' / if found : replace them with what you want
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!