how to load .mat file into a function
27 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I need your help if possible. I've recently started to learn matlab! I need to load a .mat file (a matrix of 57x9) as input of my function. Can you say me how to write this in the code of the function?
thanks for your time
Vittoria
2 件のコメント
回答 (2 件)
Marta Salas
2014 年 3 月 13 日
function myfunction(myMat)
load(myMat);
%your code
you call your function as: myfunction('path/MyMat.mat')
0 件のコメント
参考
カテゴリ
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!