I have a data ([x1,y1],....,[xn,yn]) where $n$ is large, around 700.
I want to plot these data in wxmaxima.
The question is: can I store these data in an exterior .txt or .wxmx file and call it from within the code. How achieve this?
Thanks a lot
I have a data ([x1,y1],....,[xn,yn]) where $n$ is large, around 700.
I want to plot these data in wxmaxima.
The question is: can I store these data in an exterior .txt or .wxmx file and call it from within the code. How achieve this?
Thanks a lot
Copyright © 2021 Jogjafile Inc.
If the data are coming from some external source, the function
read_nested_list
can read the data as a list of lists of 2 elements [[x1, y1], [x2, y2], ...]. There are other functions for reading from a file --?? read
will find the documentation for them.If the data are generated in Maxima, you can save them to a plain text file via
write_data
and then read them withread_nested_list
or another read function. Another option is to save them viasave("myfile.lisp", mydata)
which savesmydata
as Lisp expressions. Then you can sayload("myfile.lisp")
to restoremydata
in another session.