Importing variables from an xlsx/txt file
1 回表示 (過去 30 日間)
古いコメントを表示
Hello everybody-
I was wondering if there is a way to import variables from xlsx or txt file in workspace with names ? I know about import wizard > Column vectors and generate script. But I have huge data set in which variables positions are varying so I'm much interested to read a file with its header so that in workspace I get all variables with that command?
Thanks in advance
0 件のコメント
採用された回答
Walter Roberson
2015 年 8 月 21 日
As I suggested in your other posting, use readtable() .
Otherwise you are asking for variables to be "poofed" into existence based upon the column names. Creating variables dynamically is rarely a good idea.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!