Problem with updating a modified text file
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I have a GUI which get new word as input, then parse my Matlab file (.m) and replace the word with an especial word. Then I use the updated Matlab file. Although the file is updated (the corresponding word is replaced), some time when I run the code, it evaluate based on the last word (which is false and makes error). The interesting part is, when I click on the error line (which says for ex. This “word” is not existed), it goes through my code and shows the right word. It means that it is already replaced but it is still using the last word. Any help would be appreciated : )
댓글 수: 0
채택된 답변
per isakson
2016년 5월 31일
편집: per isakson
2016년 5월 31일
To remove the old version from memory, add
clear('name_of_your_m_file')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!