[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Indexing string variable?
From: |
John Eaton |
Subject: |
Re: Indexing string variable? |
Date: |
Tue, 02 May 95 10:19:35 EDT |
address@hidden wrote:
: I want to look at a character at the n-th position in a string varible.
: How do I do that?
:
: If I have a string variable S = "string", S(1) gave an error while
: it is a valid syntax with Matlab. :-(
This should be fixed in 1.2. An ugly workaround is:
s = "foobar";
t = toascii (s);
u = setstr (t (idx));
(No, I don't know yet when 1.2 will be ready.)
Thanks,
jwe