Skip to content

Commit

Permalink
add iscell() function and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Dec 3, 2009
1 parent b5847f9 commit 2ab528a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/functions/iscell.t
@@ -0,0 +1,4 @@
plan(2);
is(iscell(1), 0, "scalar is not cell");
is(iscell({1}), 1, "cell is cell");

4 changes: 4 additions & 0 deletions toolbox/iscell.m
@@ -0,0 +1,4 @@
function what = iscell(var)
mytype = parrot_typeof(var);
what = (mytype == 'PMCMatrix2D');
endfunction

0 comments on commit 2ab528a

Please sign in to comment.