Skip to content
Snippets Groups Projects
Select Git revision
  • 4d09ee6ae25f12d5a8f7f1cd81490efb1025ed5a
  • master default
  • fcst_shock_decomp
  • 4.5
  • clang+openmp
  • local_state_space_iteration_k
  • dynamic-striated
  • occbin
  • exo_steady_state
  • filter_initial_state
  • declare_vars_in_model_block
  • exceptions
  • rmExtraExo
  • julia
  • error_msg_undeclared_model_vars
  • static_aux_vars
  • slice
  • aux_func
  • penalty
  • 4.4
  • separateM_
  • 4.5.7
  • 4.5.6
  • 4.5.5
  • 4.5.4
  • 4.5.3
  • 4.5.2
  • 4.5.1
  • 4.5.0
  • 4.4.3
  • 4.4.2
  • 4.4.1
  • 4.4.0
  • 4.4-beta1
  • 4.3.3
  • 4.3.2
  • 4.3.1
  • 4.3.0
  • 4.2.5
  • 4.2.4
  • 4.2.3
41 results

common_strings_in_cell_arrays.m

Blame
  • Forked from Dynare / dynare
    Loading
    Stéphane Adjemian (Charybdis)'s avatar
    Stéphane Adjemian authored
    Compare two one dimensional cells of strings and count the number of common strings. The
    optional second argument returns a formated list of common variables.
    
    *Example*
    
    If we have:
    
    A = {'A1'; 'A2'; 'A3'; 'A4'; 'A5'; 'A6'};
    B = {'B1'; 'A2'; 'B3'; 'A4'; 'A1'};
    
    then
    
    [n,message] = common_strings_in_cell_arrays(A,B);
    
    returns n=3 and message='A2, A4 and A1'.
    4d09ee6a
    History