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: Michael D. Godfrey
Subject: Re: Indexing with "string" values in Matlab
Date: Fri, 25 Oct 2013 12:11:37 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

On 10/25/2013 12:03 PM, Rik wrote:
x = 1:100;
x("A")
x("ADBC")
y("ADBC") = "1234"
But, I spoke too soon.  With single quotes:
>> x('A')

ans =

    65

>> x('ABCD')

ans =

    65    66    67    68

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

y =

                                                                1342

>>




reply via email to

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