unable to load a mat file from the current directory in to workspace using a variable file name
1 回表示 (過去 30 日間)
古いコメントを表示
I'm using matlab13. Trying to put a line of code in my script that will load a variable mat file name when run, but shows up with errors. load('ac_eef12_fl04_*.mat') I also cannot perform this in my command window. It works when the file name is identical, not variable with an asterisk. Thank you!
1 件のコメント
Stephen23
2018 年 9 月 18 日
"It works when the file name is identical, not variable with an asterisk"
There is nothing in the MATLAB documentation to indicate that load should work with an asterisk in the filename. Inventing syntaxes and hoping that they will work is a very inefficient way to write code. It is much more efficient to read the documentation, to learn how MATLAB actually works:
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!