How can I code for something which is running?
Mostrar comentarios más antiguos
I want to programme in such a way that if some script file is run then that function should be called. LIke I coded if run(file.m)=1 do something end But this does not work
Respuesta aceptada
Más respuestas (1)
Julia
el 15 de Dic. de 2014
0 votos
Hi,
How about this:
You can use strcmp() to check if the last file run was your file.m
Categorías
Más información sobre Loops and Conditional Statements 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!