Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


RemoveExtension.m File Reference

Go to the source code of this file.


Functions

 if (nargin==1)
 for (i=1:1:n)
 if (~isempty(k))
 if ((k(nk)+nxc-1)==nS)
end end end if (isempty(xt))
 if (isempty(k))

Variables

 function [S, xtr]
S without the extension xtr = ''
Bethesda Maryland Define the
function name for easy referencing 
FuncName = 'RemoveExtension'
 xt = ''
end find the number of words
in xt 
n = WordCount(xt, '|')
 nS = length(S)
set the extension [err, xc] = GetWord(xt, i, '|')
 xc = zdeblank(xc)
 nxc = length(xc)
lookfor extension k = findstr(xc, S)
 nk = length(k)
 S = S(1:k(nk)-1)
 return

Function Documentation

for = 1:1:n  ) 
 

if isempty(k)   ) 
 

end end end if isempty(xt  ) 
 

if (k(nk)+nxc-1)  = nS  ) 
 

if isempty(k)  ) 
 

if nargin  = = 1  ) 
 


Variable Documentation

set the extension[err, xc] = GetWord(xt, i, '|')
 

Definition at line 48 of file RemoveExtension.m.

Bethesda Maryland Define the function name for easy referencing FuncName = 'RemoveExtension'
 

Definition at line 35 of file RemoveExtension.m.

function[S, xtr]
 

Initial value:

 RemoveExtension (S, xt)
%
%   [Sx, xtr] = RemoveExtension (S, [xt])
%
%Purpose:
%   removes the extension xt from the end of S
%   
%   
%Input Parameters:
%   S : string
%   xt: string of characters to be removed from the end of S
%      xt can be | delimited strings. Trainling blanks will be removed
%       if xt is empty (default) then the characters following and including 
%       the last . will be removed.
%   
%Output Parameters:
%   Sx : string

Definition at line 1 of file RemoveExtension.m.

end end end k = findstr(xc, S)
 

Definition at line 61 of file RemoveExtension.m.

end find the number of words in xt n = WordCount(xt, '|')
 

Definition at line 42 of file RemoveExtension.m.

nk = length(k)
 

Definition at line 52 of file RemoveExtension.m.

Referenced by cl1_fort(), CREN_render(), CREN_set_databytes(), project_byte_mip(), SUMA_FillToVoxelMask(), SUMA_M2M_interpolate(), SUMA_Suggest_Touchup_Grad(), SUMA_VoxelNeighbors(), and THD_orient_guess().

nS = length(S)
 

Definition at line 46 of file RemoveExtension.m.

nxc = length(xc)
 

Definition at line 49 of file RemoveExtension.m.

end end return
 

Definition at line 73 of file RemoveExtension.m.

S = S(1:k(nk)-1)
 

Definition at line 66 of file RemoveExtension.m.

xc = zdeblank(xc)
 

Definition at line 48 of file RemoveExtension.m.

xt = ''
 

Definition at line 38 of file RemoveExtension.m.

Referenced by AFNI_brick_to_mri(), calc_linear_regression(), calc_matrices(), GRAF_set_xyrange(), ISQ_make_montage(), memplot_to_RGB_sef(), memplot_to_X11_sef(), PASGRAF_set_xyrange(), plot_image_surface(), plot_ts_xfix(), poly_field(), RWC_draw_rect(), SUMA_ixyzsort_surface(), trn32s_(), warp_corners(), and zzlgin_().

else xtr = ''
 

Definition at line 65 of file RemoveExtension.m.

 

Powered by Plone

This site conforms to the following standards: