[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
logical type for the class function
From: |
David Bateman |
Subject: |
logical type for the class function |
Date: |
Tue, 12 Feb 2008 13:11:51 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20070914) |
trivial fix
D.
--
David Bateman address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
# HG changeset patch
# User David Bateman
# Date 1202817645 -3600
# Node ID 191f0ad38d966d6c98f14a6e85c0f1bd49af333f
# Parent 08aa4010f3a56925b8ad6422396a57a09ecde2f4
Allow cast to treat the logical types
diff -r 08aa4010f3a5 -r 191f0ad38d96 scripts/ChangeLog
--- a/scripts/ChangeLog Tue Feb 12 12:59:02 2008 +0100
+++ b/scripts/ChangeLog Tue Feb 12 13:00:45 2008 +0100
@@ -2,6 +2,7 @@ 2008-02-12 David Bateman <address@hidden
* plot/__go_draw_axes__.m: Set pm3d implict to fix colorbars on
contour plots.
+ * miscellaneous/cast.m: Also treat the logical type.
2008-02-08 Kostas Poulios <address@hidden>
diff -r 08aa4010f3a5 -r 191f0ad38d96 scripts/miscellaneous/cast.m
--- a/scripts/miscellaneous/cast.m Tue Feb 12 12:59:02 2008 +0100
+++ b/scripts/miscellaneous/cast.m Tue Feb 12 13:00:45 2008 +0100
@@ -30,7 +30,7 @@ function retval = cast (val, typ)
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);
- logical type for the class function,
David Bateman <=