🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10778

Re: Mas 'problemas' con Octave

#10778
From: hsolo
Date: Tue, 05 Feb 2002 19:16
41 lines
2072 bytes
hsolo wrote:

> �Se puede hacer una sustituci�n de variables en un comando gset. Algo asi
> como:

> titulo="Titulo de la grafica 1"
> gset title titulo

Me respondo a m� mismo.
la soluci�n es hacerlo con eval y sprintf:

r="Esto es una cadena de texto";
eval (sprintf ("gset title \"%s\"",r));
gshow title
octave:30> 
        title is "Esto es una cadena de texto", offset at 0.000000,
0.000000

Espero que os sirva a alguno (a m� me viene como Dios)

-- 
Un Saludo

Han Solo
The Rebel Alliance

Emacs is not on every system

So what? [...] Do you tell your administrative people to stick with
notepad.exe? Do you tell your fat kids they can only have the crummy
games that come with their video games or plain dress that comes with
Barbie?





-- 
  Mensaje posteado a trav�s de Ecolnet
   http://webnews.escomposlinux.org/
Interfaz de News para Web 'MyNewsGroups;)'
Technical Details
Message-ID: <a3pb1g$pfd$1@localhost.localhost>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsfeed.wirehub.nl!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!213-98-91-117.uc.nombres.ttd.ES!not-for-mail
References: <a3p1nk$h5c$1@localhost.localhost>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,a17abb396a2c610c
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-02-05 11:21:27 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsfeed.wirehub.nl!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!213-98-91-117.uc.nombres.ttd.ES!not-for-mail
From: hsolo_at_escomposlinux_dot_org@foo.com (hsolo)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Mas 'problemas' con Octave
Date: Tue, 5 Feb 2002 19:16:00 +0000 (UTC)
Organization: Ecolnet
Lines: 42
Sender: hsolo_at_escomposlinux_dot_org@foo.com (hsolo)
Message-ID: <a3pb1g$pfd$1@localhost.localhost>
References: <a3p1nk$h5c$1@localhost.localhost>
NNTP-Posting-Host: 213-98-91-117.uc.nombres.ttd.es (213.98.91.117)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1012936883 43958704 213.98.91.117 (16 [63420])
X-Orig-Path: julieta.escomposlinux.org!antonio.escomposlinux.org!marmolejo.escomposlinux.org!not-for-mail
User-Agent: NewsPortal 0.23
X-HTTP-Posting-Host: chipiron.rediris.es