Skip to content

AFNI/NIfTI Server

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

Doxygen Source Code Documentation


GetWord.m File Reference

Go to the source code of this file.


Functions

 if (nargin==2)
end if (n< 1)
make sure that word number
needed is not larger than
the total number of words 
if (n > WordCount(S, D))
 while (i<=n &~isempty(Sdiff))[Word

Variables

 function [err, Word]
trailing blanks are removed n
trailing blanks are removed
an error message is spat out 
D = ' '
trailing blanks are removed
an error message is spat out 
l
trailing blanks are removed
an error message is spat out
a space or as delimiters The
default delimiter is a space
character Output 
Parameters
trailing blanks are removed
an error message is spat out
a space or as delimiters The
default delimiter is a space
character Output 
Word
initailize return variables err = 1
return end S = deblank (S)
 return
end Sdiff = S
 i = 1

Function Documentation

make sure that word number needed is not larger than the total number of words if n  ,
WordCount(S, D
 

end if  ) 
 

if nargin  = = 2  ) 
 

while i<=n &~  isempty(Sdiff)  ) 
 


Variable Documentation

D = ' '
 

Definition at line 48 of file GetWord.m.

end err = 1
 

Definition at line 70 of file GetWord.m.

function[err, Word]
 

Initial value:

 GetWord (S,n,D)
%
%   [err,Word] = GetWord (S,n,D)
%
%Purpose:
%   Extracts the nth word from S using one of the characters in
%   D as a delimiter.
%   
%   
%Input Parameters:
%   S : String such as 'Hello Jim | Munch'

Definition at line 1 of file GetWord.m.

i = 1
 

Definition at line 66 of file GetWord.m.

end switch Opt case l
 

Definition at line 81 of file zglobb.m.

Referenced by append_build_string(), balanc_(), bandr_(), bgrat(), bisect_(), bqr_(), bup(), cbal_(), cl1_fort(), cl1_solve(), cl1_solve_res(), comlr2_(), comlr_(), comqr2_(), comqr_(), copyData(), create_node(), DCM_GetCompressedValue(), DCM_GetElementValue(), DCM_GetElementValueList(), DCM_GetElementValueOffset(), DCM_ParseObject(), DCM_ScanParseObject(), disp_comp_vect(), disp_vect(), Dtable_from_nimlstring(), edgeCount(), exparg(), explode_filename(), exportStream(), fft(), fill_area(), findCreateGroup(), Gif_CopyString(), grat1(), gratio(), Haar_ip_FFWT_1d(), Haar_ip_IFWT_1d(), handle_extension(), hanning(), hqr2_(), hqr_(), htrib3_(), htribk_(), htrid3_(), htridi_(), ifft(), Ims_rot(), imtql1_(), imtql2_(), imtqlv_(), InitContext(), invit_(), jpeg_huff_decode(), jpeg_make_c_derived_tbl(), jpeg_make_d_derived_tbl(), LST_Index(), MatrixMult(), minfit_(), mkaddcon(), mkintcon(), mklabel(), mklogcon(), mkstrcon(), mri_entropy16(), mri_entropy8(), newElementItem(), PLUTO_4D_to_nothing(), pnm_backgroundxelrow(), qzhes_(), qzit_(), r_ulong_size(), Resample(), srface_(), subdivide(), SUMA_disp_dvect(), SUMA_disp_vect(), SUMA_StretchToFitLeCerveau(), SUMA_Taubin_Smooth_Coef(), SUMA_Taubin_Smooth_TransferFunc(), svd_(), tcp_connect(), tcp_listen(), teapot(), tql1_(), tql2_(), tqli(), tqlrat_(), trbak1_(), trbak3_(), tred1_(), tred2(), tred2_(), tred3_(), tridib_(), ulong_size(), verbose_open(), verifyFormat(), vpShadeTable(), and vpSolveSystem4().

trailing blanks are removed n
 

Definition at line 1 of file GetWord.m.

trailing blanks are removed an error message is spat out a space or as delimiters The default delimiter is a space character Output Parameters
 

Definition at line 1 of file GetWord.m.

return
 

Definition at line 71 of file GetWord.m.

return end S = deblank (S)
 

Definition at line 55 of file GetWord.m.

Sdiff = S
 

Definition at line 65 of file GetWord.m.

Word
 

Initial value:

 GetWord ('Hello Jim | Munch',2)  
%                               Word = Jim
%      [err,Word] = GetWord ('Hello Jim | Munch',2,'|')
%           Word = Munch
%      [err,Word] = GetWord ('Hello Jim | Munch',2,'| l')
%           Word = o
%
%
%     Author : Ziad Saad
%     Date : Mon Apr 06 15:14:49 CDT 1998 


%Define the function name for easy referencing
FuncName = 'GetWord'

Definition at line 45 of file GetWord.m.

 

Powered by Plone

This site conforms to the following standards: