If i want to use the other m.file in a single m.file,is there any instruction code i can use?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
yang-En Hsiao
el 2 de Mzo. de 2019
Respondida: Jan
el 2 de Mzo. de 2019
If i have three m. files,codeA,codeB and codeC,now i will use codeB and codeC to find something in my codeA,first m file,is there any instruction i can i can use?
There is a method,i just copy the codeB and codeC,and paste into the codeA,and i can use the codeB and codeC when i am using the codeA,but if codeB and codeC are complicated and long,the codeA will become complicater and longer,that is not what i want.
0 comentarios
Respuesta aceptada
Más respuestas (1)
Geoff Hayes
el 2 de Mzo. de 2019
If your codeA, codeB, and codeC are functions (instead of scripts), then you can call one from the other. See Scripts vs Functions for details.
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!