
Function out = foundin(C,....) returns the index of the last occurrance of the string to find in a cell array C of strings. Of course, the function works only fine, if the cell array contains unique strings). If no match is found, a zero is returned. The function is called in one of the following ways: out = foundin(C,s); % C is a cellarray as a column vector; s is a string out = foundin(C,col,s); % C is a cellarray, lookin in column col; s is a string out = foundin(C,s,"part"); % looking for a match of s within each beginning in C out = foundin(C,col,s,"part"); (c) 2026 fabien van mook 2026.08.20 release of this file within package "fvm-miscellaneous" under GNU GPLv3+