Hi everyone
I am trying to fill a range of a matrix with a constant without using a loop. For example
now I want to fill the first 10 cells of A with 10, next 10 with 20, and final 10 with 30, without using a loop. Your help is greatly appreciated.
I am trying to fill a range of a matrix with a constant without using a loop. For example
Code:
mata A=J(30,1,.)
Comment