[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Indexing with "string" values in Matlab
From: |
Richard Crozier |
Subject: |
Re: Indexing with "string" values in Matlab |
Date: |
Fri, 25 Oct 2013 17:11:31 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 |
On 25/10/2013 17:03, Rik wrote:
10/25/13
Could someone run the following test in Matlab and see what happens?
x = 1:100;
x("A")
x("ADBC")
y("ADBC") = "1234"
I'm hoping there are some errors instead of just lamely accepting strings
as an index into an array.
Cheers,
Rik
>> x = 1:100;
x('A')
x('ADBC')
y('ADBC') = '1234'
ans =
65.0000e+000
ans =
65.0000e+000 68.0000e+000 66.0000e+000 67.0000e+000
y =
1342
Regards,
Richard
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
Re: Indexing with "string" values in Matlab,
Richard Crozier <=