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
|
|
|
|
|
|
|
|
|
|
|
|
Variable Documentation
|
Definition at line 48 of file RemoveExtension.m. |
|
Definition at line 35 of file RemoveExtension.m. |
|
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. |
|
Definition at line 61 of file RemoveExtension.m. |
|
Definition at line 42 of file RemoveExtension.m. |
|
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(). |
|
Definition at line 46 of file RemoveExtension.m. |
|
Definition at line 49 of file RemoveExtension.m. |
|
Definition at line 73 of file RemoveExtension.m. |
|
Definition at line 66 of file RemoveExtension.m. |
|
Definition at line 48 of file RemoveExtension.m. |
|
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_(). |
|
Definition at line 65 of file RemoveExtension.m. |