Is it possible to create script hooks which are run when entering a given folder?
Mostrar comentarios más antiguos
I want to creat a script in `my_dir/` , say
% hook_me.m
display('foo bar baz');
which should be run whenever I change the MATLAB current folder to `my_dir/`.
Is that possible?
1 comentario
Steven Lord
el 13 de Dic. de 2024
Why? What are you actually planning on having this script do? [I'm guessing the "disp" statement is just a placeholder.]
Depending on the answers to those questions there may be an alternate way to achieve you goal (putting your code in a Project, for example.)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Environment and Settings 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!