octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java predicate tests


From: John Frain
Subject: Re: Java predicate tests
Date: Fri, 21 Dec 2012 16:47:43 +0000

With Matlab 2008a I get


ans =

     0

??? Error using ==> horzcat
The following error occurred converting from char to opaque:
Error using ==> horzcat
Undefined function or method 'opaque' for input arguments of type 'char'.

Error in ==> test at 3
y = [x ' World']


John


On 21 December 2012 16:05, Rik <address@hidden> wrote:
12/20/12

Could someone run the following in Matlab and report the results?  There
may be errors, but that would be interesting.

x = javaObject ('java.lang.String', 'Hello');
ischar (x)
y = [x ' World']
class (y)

z = javaObject ('java.lang.Double', 4.2);
isnumeric (z)
t = z + 3.1
class (t)

w = single (z)
w = uint8 (z)

--Rik




--
John C Frain, Ph.D.
Trinity College Dublin
Dublin 2
Ireland
www.tcd.ie/Economics/staff/frainj/home.htm
mailto:address@hidden
mailto:address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]