Question: Plotting options

A very useful feature of the plotting program gnuplot is that you can generate an output which is a file instead of a graph. For instance the following short script

################
f(x)=sin(x)+cos(pi*x)
set samples 5000         
set table "outfile.dat"
plot [0:10][] f(x)
################

produces a  file containing a sampling of the function f(x) on the interval [0,10] based on a grid of 5000 points; in this way the data can be exported and handled by other programs (for instance can be used to produce graphs using TikZ).

Is there anything similar to this feature in Maple?

 

PS: I did it by hand in my specific case, but if there a simple way to do it with a built-in command I would be happier.

Please Wait...