Blockmatrix - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Blockmatrix (/thread-6927.html) |
Blockmatrix - toshk - 09-26-2016 07:27 AM Blockmat(2,3, {A,B,C,D,E,F})--> [A B C; D E F] Blockmat(3,2, {A,B,C,D,E,F})--> [A B; C D; E F] Blockmat(1,6, {A,B,C,D,E,F})--> [A B C D E F] A, B, C, D, E, F are matrices of equal dimensions. Code:
RE: Blockmatrix - Han - 09-26-2016 04:33 PM Isn't there already a command that does this (list2mat)? RE: Blockmatrix - toshk - 09-26-2016 06:12 PM if matrix A= [1 2; 3 4] and B =[5 6; 7 8] to block A and B into 2*1 is C=[A;B]=[1 2; 3 4;5 6;7 8] list2mat will block it to C=[[A],[B]]=[[1 2; 3 4];[5 6; 7 8]] with extra brackets if you have matrices A,B,C,D to be block into 2*2 matrix A,B need to augmented, C ,D need to augmented---> CONCAT in hp prime then the first has to stack on the later---> no STACK in hp prime; that's what my code does... RE: Blockmatrix - Han - 09-28-2016 05:55 PM I see now; this little program is quite useful. |