forked from anne-urai/Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfname.m
29 lines (24 loc) · 750 Bytes
/
fname.m
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
% ==================================================================
% SHITTY SOLUTION BECAUSE PRIVATE FUNCTIONS OF SPM8 ARE NOT COMPILED
% ==================================================================
function res = fname(this, name)
% Method for getting/setting file name
% FORMAT res = fname(this, name)
% _______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% Stefan Kiebel
% $Id: fname.m 1373 2008-04-11 14:24:03Z spm $
switch nargin
case 1
res = getfname(this);
case 2
res = setfname(this, name);
otherwise
end
end
function res = getfname(this)
res = this.fname;
end
function this = setfname(this, name)
this.fname = name;
end