view matlab/db/typecode.m @ 19:256016cddcba

Moved to library(debug) for messages; more helpful message if foreign library fails to load.
author samer
date Thu, 09 Feb 2012 10:57:10 +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);