Adding column headings to output file fprintf

October 14 2009 by archstevej 132
Maple

0

0


Hi all, This is probably a simple command, but I cannot figure it out. I am using the following to spit out some results from a system of ODEs, but I can't figure out how to label the individual columns t, H, W R, etc. Any suggestions? Thanks! > file := "/Desktop/Aquifer results2/comp60.txt"; try fd := fopen(file, 'WRITE', 'TEXT'); for tt from 0 to 945 do fprintf(fd, "%a %a %a %a %a %a\n", (eval([t, H(t), Weq, Req, price, total], sol2a(tt)))[]) end do finally close(file) end try; %; >
 
Loading Comments & Answers

You must be log into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account