help-octave
[Top][All Lists]
Advanced

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

Re: string-beginners question


From: David Bateman
Subject: Re: string-beginners question
Date: Fri, 8 Oct 2004 11:43:04 +0200
User-agent: Mutt/1.4.1i

Perhaps the command you want to look at is fileparts.. Consider

octave:1> [dir,name,ext] = fileparts("/mydir/myfile.myext")
dir = /mydir
name = myfile
ext = .myext

I think this will do what you want..

D.

According to Jiri Pachman <address@hidden> (on 10/08/04):
> Hi everyone,
> I can not find answer concerning string creation using dir/ls command.
> 
> I want to create string containing output of dir command. I have file with  
> specific suffix and I want to use it later for loading files of the same  
> name.
> 
> Example:
> test.inf
> test_001.dat
> test_002.dat
> test_003.dat
> test_004.dat
> 
> I would like to use the *.inf to create string with the name test.res and  
> than use part of this string to identify other files for loading. I hoped  
> a = ls *.inf could do it but it does not work. I can create this string  
> manually but I believe there has to be a way.
> 
> If you could help me out or point me in the direction where I can read  
> something about it I would appreciate it.
> 
> Thanks
> Jiri Pachman
> 
> 
> -- 
> ***************************************************
> Ing. Jiri Pachman
> Katedra Teorie a Technologie Vybusnin
> Univerzita Pardubice - FCHT
> Studentska 95
> Pardubice 53210
> tel. +420 46 603 8018
> ***************************************************
> 
> 
> 
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
> 
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------

-- 
David Bateman                                address@hidden
Motorola CRM                                 +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 1 69 35 77 01 (Fax) 
91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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