I would like to export-to-file a list containing equations, variables, and constants, e.g.
xyz := [dx = x*y-(1/3)*(y-z), dy = -0.01*x, dz = z/10];
I have used fprintf to write to a file. The closest I got to what I want is by doing:
fd := fopen("xyz.m", WRITE) :
fprintf( fd, %s, CodeGeneration[Matlab](xyz,'output'=string) ):
fclose(fd) :
Using CodeGeneration[Matlab] was the only way I found to export a list like xyz above, simply writing fprintf...