Doxygen Source Code Documentation
AfniPrefix.m
Go to the documentation of this file.00001 function [Prefix, ViewName, Ext] = AfniPrefix (Prefix)
00002 %
00003 % [Prefix, View, Ext] = AfniPrefix (Name)
00004 %
00005 %Purpose:
00006 % returns the afni prefix, view and extension from a brick name
00007 % No checking is done to make sure that View or Ext are acceptable
00008 % see PrefixStatus instead
00009 %
00010 %Input Parameters:
00011 % Name : 'elvis' or 'elvis+orig' or 'elvis+orig.HEAD'
00012 %
00013 %
00014 %Output Parameters:
00015 % Prefix: 'elvis'
00016 % View: '+orig'
00017 % Ext: .HEAD
00018 %
00019 %Key Terms:
00020 %
00021 %More Info :
00022 % PrefixStatus
00023 %
00024 %
00025 %
00026 % Author : Ziad Saad
00027 % Date : Tue Dec 4 15:24:09 EST 2001
00028 % SSCC/NIMH/ National Institutes of Health, Bethesda Maryland
00029
00030
00031 %Define the function name for easy referencing
00032 FuncName = 'AfniPrefix';
00033
00034 [Prefix, Ext] = RemoveExtension(Prefix, '.HEAD|.BRIK');
00035 [Prefix, ViewName] = RemoveExtension(Prefix, '+orig|+acpc|+tlrc');
00036
00037
00038
00039
00040
00041
00042 err = 0;
00043 return;
00044