-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcat_display_matlab_PID.m
More file actions
30 lines (27 loc) · 915 Bytes
/
cat_display_matlab_PID.m
File metadata and controls
30 lines (27 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function varagout = cat_display_matlab_PID
% cat_display_matlab_PID (in development!)
% ______________________________________________________________________
%
% Display exor return PID of this (Linux/Mac) or the last started
% (Windows) MATLAB instace.
% ______________________________________________________________________
%
% Christian Gaser, Robert Dahnke
% Structural Brain Mapping Group (https://neuro-jena.github.io)
% Departments of Neurology and Psychiatry
% Jena University Hospital
% ______________________________________________________________________
% $Id$
% get PID
pid = feature('getpid');
% display PID
if nargout==0
if isnumeric(pid) && ~isempty(pid)
fprintf('CAT parallel processing with MATLAB PID: %d\n',pid);
else
fprintf('CAT parallel processing with MATLAB PID: unknown %s PID %d\n',computer,pids);
end
else
varagout{1} = pid;
end
end