help-octave
[Top][All Lists]
Advanced

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

Re: etime


From: Kai Torben Ohlhus
Subject: Re: etime
Date: Tue, 30 Jul 2013 09:07:02 +0200

On 29 July 2013 14:21, Shabi Mashabela <address@hidden> wrote:
hello can i get help with the following question

the command etime takes as input two 6-dimensional row vector. Use the help
facility for etime and emphasize to find out more. Then find the number of
seconds between 08h 27m 30s on 18 february 2004, and 19h 35m 09s on 13 August
2008.


The input from etime is the output of the clock() function. Type
help etime
help clock
for more information.

I hope I don't spoil some exercise of you, but your code would be

t1 = [2004, 2, 18, 8, 27, 30]; % 08h 27m 30s on 18 february 2004
t2 = [2008, 8, 13, 19, 35, 09]; % 19h 35m 09s on 13 August 2008
etime (t2, t1)

Kai

reply via email to

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