read many matrices
read many matrices
(OP)
hi everybody.
i'm new on this forum, and almost new on mathcad.
i'd like to know if there's the possibility to read from a formatted ascii file (output of a fortran program) containing a high number of martices. i'd like to make an animated bar plot containing those values. i have noproblem in doing it with ONE matrix with the "read form file" component.
the file is formatted like this
1 2 3
4 5 6
7 8 9
10 11 12
13 14 15
16 17 18
ecc ecc
thanks a lot
peter form italy
i'm new on this forum, and almost new on mathcad.
i'd like to know if there's the possibility to read from a formatted ascii file (output of a fortran program) containing a high number of martices. i'd like to make an animated bar plot containing those values. i have noproblem in doing it with ONE matrix with the "read form file" component.
the file is formatted like this
1 2 3
4 5 6
7 8 9
10 11 12
13 14 15
16 17 18
ecc ecc
thanks a lot
peter form italy
RE: read many matrices
TTFN
RE: read many matrices
Bung
Life is non-linear...
RE: read many matrices
the output can have up to 20000 matrices
(dimension 100 X 100).
do you think it would stil be possible to do what you are saying? how?
for bung:
actually i was looking for a complete automatica program (wich can possibly export a .AVI file)....too much?
thank you very much everybody.
any other suggestion?
peter
RE: read many matrices
thank you irstuff.... i used your method and works fine....
do you know to force mathcad to continue reading the matrix even after a blank line in the input file?
do you think mathcad will hang if i use a too big file?
thanks again
peter
RE: read many matrices
there are limits to Mathcad's ability to handle matrices, at least with the older versions, beyond that of just having enough memory.
TTFN
RE: read many matrices
"The effective array size limit depends on the memory available on your system. Approximately 8 bytes of memory are needed per array element. For most systems, the array limit is at least 1 million elements. In no system is it higher than 8 million elements."
i think it will be enough...
bye
PS i will post my solution to the problem later(if anyone's interested...)
RE: read many matrices
FRAME:1..kmax
B(FRAME):=submatrix(M,(FRAME-1)*imax,FRAME*imax-1,0,jmax-1)
^
|___ This is a subscript!
then i put it in a 3d bar plot and it shows me all the matrices like an animation but not fluid (i'ev fixed my axes limits). when i open the animate dialog box i'm not able to drag the plot into the box and when i click on animate button it says "error initializing video stream".
can anyone help me?
thanks
RE: read many matrices
.....
RE: read many matrices
http://collab.mathsoft.com/~Mathcad2000
TTFN