Trying to import a .txt data file into matlab. When I run the script, the data from the .txt file disappears and my variables become undefined.
조회 수: 1 (최근 30일)
이전 댓글 표시
As the title says. Every time I attempt to run the script my imported data disappears and my variables become undefined.
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167214/image.png)
>> Image is what I am seeing after I attempt to run the script.
답변 (1개)
Walter Roberson
2017년 9월 16일
The code is doing what you asked it to do. If you do not want your variables to become undefined then your code should not tell MATLAB to undefine all variables as literally the very first thing it does ("clear all")
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 LaTeX에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!