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!