view matlab/db/typecode.m @ 0:0dd31a8c66bd

Initial check in to Mercurial, V.1
author samer
date Fri, 13 Jan 2012 15:29:02 +0000
parents
children
line wrap: on
line source
% typecode - Return basic typing information about a value
%
% typecode :: A -> natural ~'number of elements', bool ~'is numeric', bool ~'is char'.
function [n,isnum,isch]=typecodes(X)

n=numel(X);
isnum=isnumeric(X);
isch=ischar(X);
%tp=class(X);