|
From: | Bill Denney |
Subject: | Globbing and Cells (was Re: How many plotting engines do we have?) |
Date: | Wed, 22 Nov 2006 23:26:52 -0500 |
User-agent: | Thunderbird 1.5.0.8 (Windows/20061025) |
Falk Dechent wrote:
That string is in a cell array. To access elements of a cell array, you use a command like:octave-2.9.9:1> glob("g3trb6*") ans = { [1,1] = g3trb60.sp0 } how can I access the string "g3trb60.sp0" ??? I have no idea but i tried a lot :.-(
a = glob("g3trb6*") b = a{1}Now b is the string "g3trb60.sp0". I think of cell vectors as generic containers for variables.
Bill
[Prev in Thread] | Current Thread | [Next in Thread] |