view matlab/db/typecode.m @ 37:89688ebc447f tip

Deprecating this repository.
author samer
date Mon, 05 Jan 2015 17:42:03 +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);