Hideo Fujii
USA
1582 Posts |
Posted - 06/07/2011 : 12:52:35 PM
|
Hi Rafal,
The following snippet add all existing matrices to a new destination matrix. Here, it assumes all matrices have the same size, and a matrix book contains only one sheet:
///////////////// string mm$, hh$; window -d; //duplicate to make same size matrix %M=%H; //destination mat name mm$=%M; //same (%M)=(0); //initialize %K=""; //formula string doc -e M { hh$=%H; //picked-up matrix if(hh$!=mm$) { //exclude destination %K=%M+%H; //concat a term to formula (%M)=(%K); //evaluation the formula } } /////////////////
You can run this script by pasting in Script window, highlight all lines, and press ENTER key. Please modify as needed.
--Hideo Fujii OriginLab |
|
|