view matlab/db/typecode.m @ 14:e1f87438e34c

Work around for lock-up when used by triserver project. By god it's ugly but it seems to work.
author samer
date Thu, 02 Feb 2012 03:01:20 +0000
parents 0dd31a8c66bd
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);