load syntax
4 ビュー (過去 30 日間)
古いコメントを表示
I am using the following code to load a MAT file. It's not working. It works if I simply type Load 'C:\Data.mat' but if I use Load fname_ it wont work. Could you please tell me if I am missing anything in the code?
[FileName,PathName] = uigetfile('C:\Data.mat'); fname_=strcat(PathName,FileName); load -MAT fname_
0 件のコメント
採用された回答
Arnaud Miege
2011 年 6 月 9 日
Use the function syntax rather than the command syntax:
load(fname_,'-mat')
HTH,
Arnaud
その他の回答 (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!