Borrar filtros
Borrar filtros

How to call m_file from another m_file????????

12 visualizaciones (últimos 30 días)
ahmed elnashar
ahmed elnashar el 28 de Abr. de 2012
hi i need to know how to call m_file from another m_file thank you

Respuestas (1)

Walter Roberson
Walter Roberson el 28 de Abr. de 2012
Just put the name of the second m-file as a command in the first one (without the .m extension)
For example, in file1.m you could call file2.m by coding
file2
If file2.m contains a function, put the arguments on the lines:
file2(pi, 3:8, 'BoogieWoogie.wmv')

Categorías

Más información sobre Adding custom doc en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by