|Subject:||FW: How to send (write) output to a file when running a script file|
|Date:||Tue, 13 Dec 2016 22:05:45 -0600|
I don’t know if it’s appropriate to directly ask you this question. If not, please let me know and I will go through address@hidden. Because last time you helped me, I’m asking you this question.
When I ran my script file, it spits out everything (files read, and outputs) on the screen. I wonder if I can run the script file in a function or a program. If so is there’s a template or an example I could use where the details of compilation and execution steps are described in details.
Thanks in advance.
Jagdish C Maheshri, Ph.D.
Thank you so much.
From: Doug Stewart [mailto:address@hidden]
On Fri, Dec 9, 2016 at 9:13 PM, Astro Insight <address@hidden> wrote:
I have recently downloaded and installed Octave software. I’m trying to solve a 1700 X 880 linear programming optimization problem. I have a created a script file and I want direct the results of the program (output from the pkg---optim to a file. Apparently the glpk function (as below)spits out the results to the screen, and I don’t know how to direct the results to a file.
[xopt, fmin, status, extra] = glpk(C, A, B, LB, UB, ctype, vartype, s, param)
save data.txt xopt fmin status extra
|[Prev in Thread]||Current Thread||[Next in Thread]|