help-octave
[Top][All Lists]
Advanced

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

Re: char to int conversion problem


From: David Bateman
Subject: Re: char to int conversion problem
Date: Mon, 30 Apr 2007 12:53:43 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Alessandro Brezzi wrote:
> Hi David,
> 
> 2007/4/29, David Bateman <address@hidden <mailto:address@hidden>>:
> 
>     Yes this is a bug. Note octave has string delimited by both '' and "",
>     and treats them slightly different (escape characters are interpreted in
>     "" strings)..
> 
>     Try the attached patch, it works for me :-)... Note that with "" it
>     worked before in any case..
> 
> 
> Thank you for the tip. I'm now rebuilding the package for octave with
> your patch. In the meantime, I've found  a=char_vector('B') is working
> in both MatLab and Octave. Is this a feature or a bug?
> 

I'm not quite sure I see what you mean. What is the "char_vector"
function? It exists neither in octave or matlab... If you meant

int8(char('B'))

that doesn't work for me either without the patch I suggested.

D.


reply via email to

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