how to load .mat file into a function
Mostrar comentarios más antiguos
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 comentarios
SRI
el 14 de Mzo. de 2014
just try this out in two script one as function file next as main file
Respuestas (2)
Marta Salas
el 13 de Mzo. de 2014
function myfunction(myMat)
load(myMat);
%your code
you call your function as: myfunction('path/MyMat.mat')
Suneesh
el 13 de Mzo. de 2014
0 votos
Categorías
Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!