Skip to content

AFNI/NIfTI Server

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

Doxygen Source Code Documentation


FindChar.m File Reference

Go to the source code of this file.


Functions

 fclose (fid)
 if (length(cfnd) > 1)

Variables

 function [err, Loc]
or a string Input Parameters
or a string Input Tab
or a string Input Space
or a string Input Comma Output
v h t nc 
c = PurgeComments(c, '#')
or a string Input Comma Output
v h t nc c d n 
vf
you could use [err, Loc]
you could like fid = fopen('thisfile','r')
 ks2 = fscanf(fid,'%c',100)
the previous line reads the
st characters 
carefull
you ll read the first strings(space, tab and newline delimited)%%see also%SkipMatlabHelp%PurgeComments%NextString%%Author Debug Flag DBG = 1
initailize return variables err = 1
 Loc = []
switch cfnd
switch to find the ascii number
for new 
characters
 ks2num
 cfndInt = 10
case n
case t
case Comma
 otherwise
 return
that s it

Function Documentation

fclose fid   ) 
 

if length(cfnd ,
 


Variable Documentation

end c = PurgeComments(c, '#')
 

Definition at line 125 of file Read_1D.m.

Referenced by _getopt_internal(), AddBs(), AddSlc(), addunder(), afi2o(), afo2i(), algdiv(), alloc_vals_list(), allocate_closest(), allocate_colors(), apser(), B64_to_base64(), B64_to_binary(), badchar(), bang(), basis_gam(), basym(), bcorr(), betaln(), bfrac(), bgrat(), bpser(), brcmp1(), brcomp(), bsPutInt32(), bsPutIntVS(), bsPutUChar(), c_div(), c_name(), calc_flof(), calc_glt_matrix(), calc_lcoef(), calc_sspe(), calculate_acontrasts(), calculate_adifferences(), calculate_ameans(), calculate_bcontrasts(), calculate_bdifferences(), calculate_bmeans(), calculate_ccontrasts(), calculate_cdifferences(), calculate_cmeans(), calculate_contrasts(), calculate_fa(), calculate_fab(), calculate_fabc(), calculate_fac(), calculate_fb(), calculate_fbc(), calculate_fc(), calculate_ss0(), calculate_ssi(), calculate_ssij(), calculate_ssijk(), calculate_ssijkm(), calculate_ssik(), calculate_ssj(), calculate_ssjk(), calculate_ssk(), calculate_sum(), calculate_xdifferences(), calculate_xmeans(), cds(), cfft(), change_node_to_table(), check_datum_type(), check_norm_dirs(), Clp_SetOptionChar(), Clp_VaOptionError(), color_bright(), color_init(), colormap_stream(), column_to_vector(), combine_colormaps(), comblock(), comlen(), compare(), compute_node_areas(), compute_node_vols(), computeVM(), copy_bitvector(), copy_rest_of_file(), create_gert_script(), cubic_spline(), cumnor(), Daubechies_forward_pass_1d(), Daubechies_forward_pass_2d(), Daubechies_inverse_pass_1d(), Daubechies_inverse_pass_2d(), DC_color_bright(), DC_init_im_col(), DC_spectrum_AJJ(), DCM_ListToString(), DCM_ModifyElements(), DCM_ParseObject(), def_commons(), directed_dist(), disp_numeric_data(), disp_param_data(), disp_parser_t(), disp_surf_vals(), dist_fn(), dlnbet(), do_p1_const(), dsort(), dumpOB(), E0001(), emit_bits(), equal_bitvector(), equal_bitvector_piece(), erf1(), erfc1(), exelse(), exportPixels(), exportStream(), exportVRLength(), f3mm_out_of_bounds(), ffilecopy(), find_base_value(), find_color_index(), find_local_maxima(), first_marker(), float_list_comp_mode(), fpser(), frame_argument(), free_v2s_results(), fvec_magnitude(), gaminv(), get_binary_item(), get_options(), get_sof(), get_sos(), get_surf_measures(), getcd(), Gif_AddColor(), Gif_FindColor(), glob(), glutBitmapCharacter(), glutBitmapLength(), glutBitmapWidth(), glutStrokeCharacter(), glutStrokeLength(), glutStrokeWidth(), grat1(), gratio(), gt_num(), Haar_forward_pass_1d(), Haar_forward_pass_2d(), Haar_inverse_pass_2d(), Haar_ip_FFWT_1d(), handle_args(), hash(), huber_aa(), incomm(), ind_printf(), init_opts_t(), initialize(), int_list_posn(), intersection_map(), InvertSym3(), jpeg_fill_bit_buffer(), l_g(), l_put(), lazy_det(), load_closest(), lower_string(), magnitude_f(), main(), make_plot(), many(), matrix_add(), matrix_multiply(), matrix_scale(), matrix_subtract(), MD5Transform(), med3(), median_float4(), memset(), merge_image(), mkCell(), mkname(), name_color(), neighborCount(), next_marker(), NI_stream_readbuf64(), NI_write_columns(), nl_init(), norm2seg_angle(), NUD_3string(), NUD_threestring(), numread(), op_gen(), out_const(), p1_const(), p1comp_goto(), p1gets(), pad_common(), parse_frame_spec(), pentagon(), print_column_headers(), ps_label(), Ptoken(), putio(), PV2S_disp_afni_surfaces(), r_get_max_u_short(), r_idisp_mri_imarr(), r_idisp_thd_datablock(), rank_order_float(), RCREND_axis_rotmatrix(), RCREND_inc_angles(), RCREND_rotmatrix_to_angles(), rd_disp_color_info(), rdlong(), rdname(), read_1_byte(), read_color_table(), read_colormap_file(), read_ppm_map(), read_socket(), read_text_colormap(), readref(), real_write_image_data(), realloc_vals_list(), regression_analysis(), remapFileName(), REND_inc_angles(), REND_rotmatrix_to_angles(), REORDER_parseMap(), rgb_to_XImage_clever(), rot_to_shear(), rot_to_shear_matvec(), RT_mp_comm_send_data(), RT_registration_3D_onevol(), RT_registration_3D_realtime(), sdata_from_1D(), sdata_from_default(), set_3dmm_bounds(), set_all_surf_vals(), set_node_list_data(), set_surf_results(), show_point_list_s(), show_run_stats(), sin_func(), sin_grad(), subtract(), SUMA_CalculateNodeAreas(), SUMA_ClassOf(), SUMA_ClusterCenterofMass(), SUMA_Flip_Color_Map(), SUMA_FreeSurfer_Read_eng(), SUMA_FreeSurfer_ReadBin_eng(), SUMA_Mesh_Volume(), SUMA_NewAreaAtRadius(), SUMA_NewVolumeAtRadius(), SUMA_OrientTriangles(), SUMA_Read_SpecFile(), SUMA_readFScurv(), SUMA_Subdivide_Mesh(), SUMA_Surface_Curvature(), SUMA_swap_spec_entries(), swap_4(), swap_fourbytes(), swap_twobytes(), sxyz_1D_to_nlist(), t_putc(), THD_get_voxel(), thd_mask_from_brick(), tnonc_s2p(), to_upper(), tqli(), usage(), v2s_write_outfile_1D(), v2s_write_outfile_niml(), validate_option_lists(), validate_v2s_inputs(), vector_add(), vector_multiply(), vector_multiply_subtract(), vector_subtract(), verify_surf_t(), VPComputeDepthCueTable(), VPDepthCueIntImage(), VPDumpClassifier(), VPDumpView(), vpGetd(), vpGeti(), vpGetp(), vpLoadClassifiedVolume(), vpLoadMinMaxOctree(), vpLoadRawVolume(), vpOctreeMask(), vprint(), vpShadeTable(), vpStoreClassifiedVolume(), vpStoreMinMaxOctree(), vpStoreRawVolume(), VPWarpA101N(), VPWarpA110N(), VPWarpA111N(), VPWarpA301N(), VPWarpA330N(), VPWarpA330R(), VPWarpA331N(), VPWarpA331R(), w3dMRI_affine(), w3dMRI_scaler(), write_1_byte(), write_color_table(), write_compressed_data(), write_data_to_file(), write_output(), wronginf(), x_putc(), xvalue(), y_putc(), z_div(), z_putc(), zdiv(), and zeroconst().

the previous line reads the st characters carefull
 

Definition at line 35 of file FindChar.m.

switch cfnd
 

Definition at line 58 of file FindChar.m.

else cfndInt = 10
 

Definition at line 79 of file FindChar.m.

switch to find the ascii number for new characters
 

Definition at line 58 of file FindChar.m.

case Comma
 

Definition at line 72 of file FindChar.m.

you ll read the first strings (space, tab and newline delimited) % % see also % SkipMatlabHelp % PurgeComments % NextString % % Author Debug Flag DBG = 1
 

Definition at line 52 of file FindChar.m.

that s get back err = 1
 

Definition at line 90 of file FindChar.m.

you could like fid = fopen('thisfile','r')
 

Definition at line 33 of file FindChar.m.

function[err, Loc]
 

Initial value:

 FindChar (C, cfnd)
%
%   [err,Loc] = FindChar (C, cfnd)
%
%Purpose:
%   find certain characters in an array of characters

Definition at line 1 of file FindChar.m.

that s it
 

Definition at line 87 of file FindChar.m.

switch to find the ascii number for new try ks2 = fscanf(fid,'%c',100)
 

Definition at line 60 of file FindChar.m.

ks2num
 

Initial value:

 str2num(sprintf('%d\n',ks2))
        case 'NewLine'

Definition at line 61 of file FindChar.m.

end end Now find such characters Loc = []
 

Definition at line 85 of file FindChar.m.

Referenced by SUMA_PositionWindowRelative(), and SUMA_ReleaseEngineData().

case n
 

Definition at line 64 of file FindChar.m.

otherwise
 

Definition at line 74 of file FindChar.m.

or a string Input Comma Output Parameters
 

Definition at line 1 of file FindChar.m.

return
 

Definition at line 91 of file FindChar.m.

case Space
 

Definition at line 70 of file FindChar.m.

case t
 

Definition at line 68 of file FindChar.m.

case Tab
 

Definition at line 66 of file FindChar.m.

you could use[err, Loc]
 

Initial value:

 FindChar(ks2, 'Comma')
% or 
%  [err, Loc] = FindChar(ks2, 'Tab')
%
% ks2 could be a whole ascii file or a chunk of one

Definition at line 28 of file FindChar.m.

Referenced by main(), and merger_flatten().

or a string Input Comma Output v h t nc c d n vf
 

Definition at line 1 of file FindChar.m.

Referenced by parevec_().

 

Powered by Plone

This site conforms to the following standards: