[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: argv() as a single string?
From: |
Jaroslav Hajek |
Subject: |
Re: argv() as a single string? |
Date: |
Fri, 17 Sep 2010 21:23:06 +0200 |
On Fri, Sep 17, 2010 at 1:26 PM, Daniel Arteaga
<address@hidden> wrote:
> Hello,
>
> A simple question: How can I convert the result of argv() to a single
> string containing all the command-line parameters?
>
> I have tried with char, strcat, strvcat... etc but with no success.
>
> Thanks!!
>
> Dani Arteaga
>
v = argv ();
v(2,:) = {" "};
v = [v{:}];
hth
--
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz