how to load .mat file into a function
48 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Marta Salas
il 13 Mar 2014
function myfunction(myMat)
load(myMat);
%your code
you call your function as: myfunction('path/MyMat.mat')
0 Commenti
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!