comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: linfit with string time array (x)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: linfit with string time array (x) [message #63448 is a reply to message #63434] Mon, 10 November 2008 08:43 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

julia.walterspiel@gmail.com schrieb:
> hi
>
> i want to fit a line through my data with the linfit function but my x-
> axis is in string format. Is there a way to avoid transforming the
> string time array into non-string (e.g. other function which is as
> easy as linfit)?
>
> cheers
> juls

well you need floating point values.

and it is not difficult just write double(x) if you have many digits.

if the numbers are written in a time format it is better to show an
example. Those need to be converted into a number. I would suggest to
use julian seconds (seconds since 2000-01-01 00:00:00 UTC)

cheers
Reimar

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFJGGTF5aOc3Q9hk/kRAgZkAKCqoaj4km9s4V1tre57uVzPa19g5gCg tCPN
l9pwWZ9qIqW/e6Xb13C0vU8=
=Ed+7
-----END PGP SIGNATURE-----
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: usersym keywords -- why?
Next Topic: linfit with string time array (x)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:55:30 PDT 2025

Total time taken to generate the page: 0.18546 seconds