SPM12 CAT12 log files path

11 visualizaciones (últimos 30 días)
Christopher Weise
Christopher Weise el 12 de Jul. de 2023
Comentada: Christopher Weise el 8 de Sept. de 2023
Hello,
I've been running some preprocessing of cortical surface data with CAT12. I usually split this into separate processes, thus also getting separate log files.
Unfortunately, these keep piling up in my home directory and I haven't found the settings or config files in either SPM or CAT to have them stored in a designated directory.

Respuestas (1)

Yash
Yash el 6 de Sept. de 2023
It's important to keep your directory organized, especially when you're dealing with a lot of log files. However, the location where log files are stored can depend on how CAT12 is configured and where you execute your preprocessing. Here are a few suggestions on how you can potentially manage your log files better:
Use MATLAB's cd Command:
Before running your CAT12 preprocessing, you can use the MATLAB cd (change directory) command to change the current directory to the one where you want your log files to be stored. For example:
cd('/path/to/your/log_directory')
Make sure to replace '/path/to/your/log_directory' with the actual path to your desired log directory. Then, when CAT12 saves log files, they should go to this directory.
Redirect Output to a Log File:
When you run CAT12 from the command line or a script, you can redirect the output, including log messages, to a specific log file using the diary command. For example:
diary('/path/to/your/log_directory/cat12_log.txt');
% Run CAT12 processing here
diary off
This will capture all the output, including log messages, and save them to the specified log file.
Remember to replace '/path/to/your/log_directory' with the actual path to your desired log directory in all the above examples.
Also refer to the documentation below for more information
I hope this helps.
  1 comentario
Christopher Weise
Christopher Weise el 8 de Sept. de 2023
Thank you very much, I will try this!

Iniciar sesión para comentar.

Categorías

Más información sobre MRI en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by