Mercurial > hg > plml
annotate matlab/db/typecode.m @ 25:de95213cdcc2
swiplml now sets DYLD_FALLBACK_LIBRARY_PATH based on output of matlab -e
author | samer |
---|---|
date | Wed, 22 Feb 2012 21:36:34 +0000 |
parents | 0dd31a8c66bd |
children |
rev | line source |
---|---|
samer@0 | 1 % typecode - Return basic typing information about a value |
samer@0 | 2 % |
samer@0 | 3 % typecode :: A -> natural ~'number of elements', bool ~'is numeric', bool ~'is char'. |
samer@0 | 4 function [n,isnum,isch]=typecodes(X) |
samer@0 | 5 |
samer@0 | 6 n=numel(X); |
samer@0 | 7 isnum=isnumeric(X); |
samer@0 | 8 isch=ischar(X); |
samer@0 | 9 %tp=class(X); |