Properties
Similar Topics
Statistics
Comments
11
Participants
3
Subscribers
3
Votes
1
Views
868
Share
Adding leading zeros from the second row is the last in row to a matrix
Answered
Adding leading zeros from left the second row from the last in row to a matrix to equalize the number of columns in the rows when the column sizes are reduced by one less per row.
input: {{4,6,0,0},{4,6,0},{8,12}}
output: {{4,6,0,0},{0,4,6,0},{0,0,8,12}}
1 row = 0 zeros in left
2 row = 1 zeros in left
3 row = 2 zeros in left
.....
n row = n1 ceros in left
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2023 International GeoGebra Institute
your input is'nt a matrix, try
Join({input(1)},Sequence( Join(Sequence(0,k,1,j1),input(j)),j,2,3))
your input is'nt a matrix, try
Join({input(1)},Sequence( Join(Sequence(0,k,1,j1),input(j)),j,2,3))
Comments have been locked on this page!