[Top][All Lists]

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

Re: convert dec to char

From: Juan Pablo Carbajal
Subject: Re: convert dec to char
Date: Mon, 9 Feb 2015 07:44:05 +0100

On Sun, Feb 8, 2015 at 7:58 PM, Victor Hanby <address@hidden> wrote:
> I want to permutate a character string. This works in matlab:
> str=‘abc’;
> perms(str);
> but not in Octave, which seems to expect a decimal argument. I guess the 
> matlab version of perms is overloaded? To get this to run in Octave, I can 
> use toascii(str) and then permutate the resulting vector, but I can’t figure 
> out how to  convert this back to a string. There doesn’t seem to be an 
> inverse of ‘toascii’?
> Vic
> _______________________________________________
> Help-octave mailing list
> address@hidden

You can do
str = 'abce';

reply via email to

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