samer@0: % typecode - Return basic typing information about a value samer@0: % samer@0: % typecode :: A -> natural ~'number of elements', bool ~'is numeric', bool ~'is char'. samer@0: function [n,isnum,isch]=typecodes(X) samer@0: samer@0: n=numel(X); samer@0: isnum=isnumeric(X); samer@0: isch=ischar(X); samer@0: %tp=class(X);