How to call a user-defined function
Mostrar comentarios más antiguos
I have a function, CAT(a,b,c) for example saved as CAT.m in a separate file. How can I call this user-defined function from the command window? When I use the function, it makes an error with the message, "Undefined variable or function". I checked for typos. Or rather, how would I put this file on the correct Matlab path? Thanks in advance.
2 comentarios
Make sure that the function is on the MATLAB Search Path (e.g. in the current folder):
Jisu Shin
el 25 de Jun. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre File Operations 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!