[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Saving calculation answers to file
From: |
vilsu |
Subject: |
Re: Saving calculation answers to file |
Date: |
Tue, 24 Jul 2012 07:33:47 -0700 (PDT) |
koe.m file is like
A * U * r * U * r
A * U * r * U * s
A * U * r * U * l
A * U * r * U * m
A * U * r * r * U
A * U * r * r * l
A * U * r * r * m
A * U * r * l * U
A * U * r * l * l
A * U * r * m * U
.
.
.
lots of matrix multiplication. each line gives an answer. Each answer shoud
be saved to a file output.txt that should read like
[3 2 1 4]
[3 2 1 4]
.
.
.
I have written about this in a thread "simple advice needed on input and
output".
I created a script that did this line by line, so that each cycle read a
line from a file, the saved to a another file.
I wondered if this could be done in a bunch, so that the whole input file
would be read in one bunch. Then all lines would be calculated in one bunch.
Finally saving to output file would happen in one step. I would reduce time
it takes to read and write to disk.
I thank everyone, and apologise if I have broken rules by writing in two
threads.
Yours, vilsu
--
View this message in context:
http://octave.1599824.n4.nabble.com/Saving-calculation-answers-to-file-tp4631628p4631637.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Saving calculation answers to file, vilsu, 2012/07/24
- Re: Saving calculation answers to file, Andy Buckle, 2012/07/24
- Re: Saving calculation answers to file, Juan Pablo Carbajal, 2012/07/24
- Re: Saving calculation answers to file, Nicholas Jankowski, 2012/07/24
- Re: Saving calculation answers to file,
vilsu <=
- Re: Saving calculation answers to file, vilsu, 2012/07/24
- Re: Saving calculation answers to file, Juan Pablo Carbajal, 2012/07/24
- Re: Saving calculation answers to file, vilsu, 2012/07/24
- Re: Saving calculation answers to file, Juan Pablo Carbajal, 2012/07/24
- Re: Saving calculation answers to file, vilsu, 2012/07/24
- Re: Saving calculation answers to file, Nicholas Jankowski, 2012/07/24
- Re: Saving calculation answers to file, Juan Pablo Carbajal, 2012/07/25
- Help using odepkg, Allen.Windhorn, 2012/07/24
- Re: Help using odepkg, c., 2012/07/25
- RE: Help using odepkg, Allen.Windhorn, 2012/07/25