octave-maintainers
[Top][All Lists]
Advanced

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

Re: Indexing with "string" values in Matlab


From: John W. Eaton
Subject: Re: Indexing with "string" values in Matlab
Date: Fri, 25 Oct 2013 12:33:57 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

On 10/25/2013 12:11 PM, Michael D. Godfrey wrote:

 >> y('ADBC') = '1234'

y =

1342

Though it doesn't show in the quoted message above (stupid mailer) in the original message it looked like the string was padded with blanks. Is that correct? What does

  clear y
  y('adbc') = '1234';
  abs (y)

show? Does it fill with blanks (ASCII 32)? Octave fills with 0 and then doesn't display the NUL character.

jwe




reply via email to

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