Commit Graph

2 Commits (9c3c0d727f7fe336c02e580c57b13f5ab9f29314)

Author SHA1 Message Date
Stéphane Adjemian (Telemachus) 8fedac4d5e Replaced calls to dyn_assert by calls to dassert.
This routine is used to compare objects i -n unit tests.
2014-11-08 09:28:53 +01:00
Stéphane Adjemian (Charybdis) 4d09ee6ae2 Added new routine.
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'.
2013-03-21 16:42:12 +01:00