Tag Info

New answers tagged

2

Borrowing from existing answers: 19.9 + Range@Length@A/10 + 0 A


1

Two more: 19.9 + #1/10 + 0 #2 & @@@ Transpose@{Range@Length@A, A} or Transpose@{Range@Length@A, A} /. {x_, y_} :> 0 y + 19.9 + x/10


11

Another interesting approach: i = 0; Map[0 # + (20 + 0.1 i++) &, A] {{20., 20., 20., 20., 20., 20., 20., 20., 20., 20., 20., 20., 20., 20., 20., 20., 20., 20.}, {20.1, 20.1, 20.1, 20.1, 20.1, 20.1, 20.1, 20.1, 20.1, 20.1, 20.1, 20.1, 20.1, 20.1, 20.1, 20.1}, {20.2, 20.2, 20.2, 20.2, 20.2, 20.2, 20.2, 20.2, 20.2, 20.2, 20.2, 20.2, 20.2, ...


4

Table[A[[i, All]] = Table[20. + n/10, {n, 0, Length[A] - 1}][[i]], {i, 1, Length[A]}]; A // TableForm


5

Using: A = {{0.620161, 0.320312, 0.94842, 1.11844, 1.12045, 1.12539, 1.13177, 1.13142, 1.15048, 1.23244, 0.721388, 0.708943, 0.750067, 0.744916, 0.720972, 0.674833, 1.29773, 1.29514}, {0.620161, 0.320312, 0.94842, 1.11844, 1.12045, 1.12539, 1.13177, 1.13142, 1.15048, 0.721388, 0.750067, 0.744916, 0.720972, 0.674833, 1.29383, ...


5

ClearAll[miF, rPF, tBF]; miF = MapIndexed[20 + .1 (#2[[1]] - 1) &, #, {2}] &; or rPF = ReplacePart[#, {i_, _} :> (19.9 + 0.1 i)] &; or tbF = Block[{j = 0}, Table[ 0 i + 20 + 0.1 j++, {i, #}]] &; Example: A = {{0.620161, 0.320312, 0.94842, 1.11844, 1.12045, 1.12539, 1.13177, 1.13142, 1.15048, 1.23244, 0.721388, 0.708943, ...



Top 50 recent answers are included