SPM12 CAT12 log files path

조회 수: 11 (최근 30일)
Christopher Weise
Christopher Weise 2023년 7월 12일
댓글: Christopher Weise 2023년 9월 8일
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.

답변 (1개)

Yash
Yash 2023년 9월 6일
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
Christopher Weise
Christopher Weise 2023년 9월 8일
Thank you very much, I will try this!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MRI에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by