Load .mat file from anyfolder
3 ビュー (過去 30 日間)
古いコメントを表示
I have to load .mat file from a folder in my workspace. Can anyone tell me how to do so?
0 件のコメント
採用された回答
Mohammad Abouali
2015 年 12 月 8 日
編集済み: Mohammad Abouali
2015 年 12 月 8 日
load C:\myFolder\mySubFolder\myMatFile.mat
or
variableName= 'myVarName';
matfilePath = 'C:\myFolder\mySubFolder\myMatFile.mat';
data = load(matfilePath);
% to access the variable
data.(variableName);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Workspace Variables and MAT-Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!