フィルターのクリア

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.

2 ビュー (過去 30 日間)
As the title says. Every time I attempt to run the script my imported data disappears and my variables become undefined.
<<
>> Image is what I am seeing after I attempt to run the script.

回答 (1 件)

Walter Roberson
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")

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by