Redirecting Command Window output to stdout using mlcaller, error
Mostrar comentarios más antiguos
I am trying to redirect the Command Window output to stdout and stderr when running MATLAB in batch mode. I found this link that answers my question: http://www.mathworks.com/support/solutions/en/data/1-ACT3YN/index.html?product=ML&solution=1-ACT3YN
However, after following the steps, I receive an error: ??? Undefined function or variable 'myFunction'. I don't understand why I am receiving this error, because the function is defined.
Here is my code:
@echo off
echo "running..."
mlcaller "cd 'C:\Documents and Settings\My Documents\folder';myFunction('file.dat','data.txt');"
echo "complete"
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!