if copy a matrix to an other matrix
with a
for {set i 0} {$i < $rows} {incr i} {
m1 insert row end [m2 get row $i]
}
in m1 i found only first element in row of m2
where i fall?
thanks
Umberto
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if copy a matrix to an other matrix
with a
for {set i 0} {$i < $rows} {incr i} {
m1 insert row end [m2 get row $i]
}
in m1 i found only first element in row of m2
where i fall?
thanks
Umberto
Have you told m1 how many columns it has before you started insertion ? If m2 has 10 columns, but m1 only 2, then only two columns will be copied.