Mercurial > hg > octave-max
changeset 7473:feb791af5d9f
Allow cast to treat the logical types
author | David Bateman |
---|---|
date | Tue, 12 Feb 2008 13:00:45 +0100 |
parents | 2d8315dcd8d2 |
children | 318c54123d28 |
files | scripts/ChangeLog scripts/miscellaneous/cast.m |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -2,6 +2,7 @@ * plot/__go_draw_axes__.m: Set pm3d implict to fix colorbars on contour plots. + * miscellaneous/cast.m: Also treat the logical type. * plot/__go_draw_axes__.m: Use the cdatamapping property to set the cbrange.
--- a/scripts/miscellaneous/cast.m +++ b/scripts/miscellaneous/cast.m @@ -30,7 +30,7 @@ if (ischar (typ)) if (any (strcmp (typ, {"int8"; "uint8"; "int16"; "uint16"; "int32"; "uint32"; "int64"; "uint64"; - "double"; "single"}))) + "double"; "single"; "logical"}))) retval = feval (typ, val); else error ("cast: type name `%s' is not a built-in type", typ);