How do you load a .txt file into your workspace filled with only numbers from a push button?
1 回表示 (過去 30 日間)
古いコメントを表示
I've been using Uigetfile but I cant seem to get the data into the workspace.
回答 (1 件)
Dave Behera
2016 年 4 月 4 日
You can load a file from a GUI with multiple options. As Geoff mentioned above, use uigetfile to select your file and then use textscan, csvread,xlsread, etc to read it based on the type of file it is.
For loading .mat file, you can use uiopen directly to load all variables inside it: http://www.mathworks.com/help/matlab/ref/uiopen.html
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!