help-octave
[Top][All Lists]
Advanced

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

Globbing and Cells (was Re: How many plotting engines do we have?)


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:
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 :.-(
That string is in a cell array. To access elements of a cell array, you use a command like:

a = glob("g3trb6*")
b = a{1}

Now b is the string "g3trb60.sp0". I think of cell vectors as generic containers for variables.

Bill


reply via email to

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