help-octave
[Top][All Lists]
Advanced

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

Re: how to convert a structure array of strings into a string array?


From: Thorsten Meyer
Subject: Re: how to convert a structure array of strings into a string array?
Date: Sun, 19 Oct 2008 21:58:48 +0200
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

Hi,

David Bateman wrote:
>>
>> The cat function can concatenate correctly:
>>
>> octave:69> cat(1, a{:})
>> ans =
>>
>> eins
>> zwei
>> drei
>>
>> However, it is incredibly slow for larger arrays and it cannot handle
>> strings of different length.
>
> Its faster in 3.1.51+ and is as fast as [a{:}] now.
Thanks for your help. I tried octave built from the mercurial sources:
cat is indeed really fast now.
Also I found the function char() which is not as fast as cat, but still
twice as fast as the solution with eval. Also it works with strings of
unequal length as well.

Regards

Thorsten Meyer



reply via email to

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