help-octave
[Top][All Lists]
Advanced

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

Re: Octave - Date output


From: Keith Goodman
Subject: Re: Octave - Date output
Date: Thu, 1 Jun 2006 09:22:40 -0700

Or you can use

printf("%s %s\n", datestr(now), msg);

which will print something like

01-Jun-2006 09:10:36 Calculating gligoffs
01-Jun-2006 09:11:21 Truncating result
01-Jun-2006 09:16:03 Wrapping up
01-Jun-2006 09:16:57 Done!

To save to a log file just use the diary command.

On 6/1/06, Robert A. Macy <address@hidden> wrote:
in octave...
>> help date

to file it away

>> fileofdate = fopen("date.txt","w");
>> fprintf( fileofdate,"Femm analyzed on %s\n",date() );
>> fclose(fileofdate);

but octave date stamps your ascii data files.  The first
line contains the data and time...
>> save -ascii "BFields.txt" b*;
assuming you have data starting with the letter b

               - Robert -

On Thu, 1 Jun 2006 09:53:22 +0100 (BST)
 Senthil Ram <address@hidden> wrote:
> Dear FEMMians & OCTAVEiens,
>
>   is the any reference syntax for Date output format ?
>
>   I would like to get the date of a process carried out
> in a seperate output file.
>
>   Can any one help me out getting the data as output file
> for bot date and to generate output file.
>
>
>
> With Warm Regards
>   N.D.Senthil Ram
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> #49, Villianur Road, Murungapakkam,Pondicherry 605 004,
> INDIA
> Mobile: 00 91  98941 40915, Telephone: 00 91 413 2353696
>
_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave



reply via email to

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