Doxygen Source Code Documentation
zdeblank.m
Go to the documentation of this file.00001 function [Sd] = zdeblank (S) 00002 % 00003 % [Sd] = zdeblank (s) 00004 % 00005 %Purpose: 00006 % removes blanks surrounding a word in S 00007 % 00008 % 00009 %Input Parameters: 00010 % S : a string 00011 % 00012 % 00013 %Output Parameters: 00014 % Sd : S without the surrounding blanks 00015 % 00016 % 00017 %Key Terms: 00018 % 00019 %More Info : 00020 % deblank, zdeblankall 00021 % 00022 % 00023 % 00024 % Author : Ziad Saad 00025 % Date : Tue Sep 12 12:15:24 PDT 2000 00026 % LBC/NIMH/ National Institutes of Health, Bethesda Maryland 00027 00028 00029 %Define the function name for easy referencing 00030 FuncName = 'zdeblank'; 00031 00032 %Debug Flag 00033 DBG = 1; 00034 00035 %initailize return variables 00036 err = 1; 00037 00038 Sd = deblank(S); 00039 Sd = deblank(fliplr(Sd)); 00040 Sd = fliplr(Sd); 00041 00042 00043 err = 0; 00044 return; 00045