|
From: | Markus Bergholz |
Subject: | Re: octave text format |
Date: | Mon, 27 Jan 2014 16:03:09 +0100 |
From net documentation, it looks like the database package is able to work with sqlite, but I used the name of tar.gz file, official name of package is probably octave-swig. http://octave-swig.sourceforge.net/octave-db.html
I am sorry for mystification.
My data comes from circuit simulator. It is impossible to read output by functions csvread.
It cannot work. That now I have to get data into octave. To work with them. But from your answer, I think I will be able to generate output which should be readable for octave by using sqlite3 executable.
That thanks for helping me to get this idea.
Od: Markus Bergholz [address@hidden]
Odesláno: 27. ledna 2014 14:10
On Mon, Jan 27, 2014 at 2:01 PM, Martin Strympl <address@hidden> wrote:
I am not able to use sqlite3 database with octave. I know it is possible, but it will be very unusable in my situation. I have to write some computer independent tool. There is too much old version of octave and it isn't possible to update it for all computers. For my octave version, database octave package cannot be used. I have tried it.
the database pacakge just support postgreSQL, not sqlite!Another possibility is to use redis as database. https://github.com/markuman/go-redis but it needs instrument-control package
refering to your first mail.have you simply try csvread/csvwrite?or where are your datas come from?
It is a reason, why I need to read data from sqlite3 database and re-save some of them to octave format.
I have read that example for load from octave file, but there is no example how to do save.
________________________________________
Od: c. [address@hidden]
Odesláno: 24. ledna 2014 21:30
Komu: Martin Strympl
Kopie: address@hidden
Předmět: Re: octave text format
On 24 Jan 2014, at 12:07, Martin Strympl <address@hidden> wrote:
> Hello.
>
> For my work, I want to generate Octave’s text data format file. I want to bring some data to octave and use octave to calculate something with them. It will be around tens of Mega Bytes. But I have data in different format and I have been working on tool for conversion.
>
> I have looked at Octave’s text data format, and it looks simple.
>
> My question is, is there any documentation of Octave’s text data format, which can I use?
> Or how complicated is to use Octave C++ api to create matrix and cell variables and save them to file?
>
> I have checked doxygen documentation and some headers of Octave, but for me, it looks little complicated to create octave text file with using function do_save from load-save.cc file. It looks there are much hidden thing.
>
> Thanks for answer.
>
> Martin Strympl
Rather than try to rewrite code to produce files in Octave format,
why don't you just use Octave itself to write your files?
Here's an example about how to do that from either C / C++ or Fortran:
http://wiki.octave.org/Fortran#C.2B.2B_function
If your files are very big you can change it to use binary format instead
by changing on code line only.
c.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave
--
icq: 167498924
XMPP|Jabber: address@hidden
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |