Lab Manual:1D Math
You can do some basic manipulations of your 1D vectors by using 1dtranspose and 3dcalc in concert.
Your standard .1D vector is a big long column. 3dcalc only works on rows, so you need to first transpose your .1D vector using 1dtranspose.
Example:
1dtranspose somevector_b.1D somevector_b_tp.1D
1dtranspose somevector_a.1D somevector_a_tp.1D
This will transpose your vector file somevector_a.1D and somevector_b.1D and save the transposed copies as somevector_a_tp.1D & somevector_b_tp.1D.
Now you can do some fun math using 3dcalc.
e.g.
3dcalc -a somevector_a_tp.1D -b somevector_b_tp.1D -expr '(2*a - b)' -prefix somevector_2a-b_tp.1D
This multiplies somevector_a by 2 and substracts somevector_b.
Next retranspose your final vector and you have a cool new vector .1D file you can use in your regressions.
1dtranspose somevector_2a-b_tp.1D somevector_2a-b.1D
https://www.prolifeglobal.org/forum/questions-answers/full-deadpool-3-wolverine https://www.prolifeglobal.org/forum/questions-answers/deadpool-3-wolverine-3 https://www.prolifeglobal.org/forum/questions-answers/r-deadpool-3-wolverine https://www.prolifeglobal.org/forum/questions-answers/full-alien-romulus https://www.prolifeglobal.org/forum/questions-answers/alien-romulus-6 https://www.prolifeglobal.org/forum/questions-answers/alien-romulus-7 https://www.prolifeglobal.org/forum/questions-answers/deadpool-3 https://www.prolifeglobal.org/forum/questions-answers/deadpool-3-wolverine-4 https://pastecode.io/s/jjp8q8j8 https://jsbin.com/likahumaja/edit?html,output https://pastelink.net/6zu45bbi https://paste.gd/QCWFnKFh https://paste.feed-the-beast.com/view/888b1b84 https://etextpad.com/cuqoum6cn1