SPM12 CAT12 log files path
5 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Yash
on 6 Sep 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.
See Also
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!