You can use assignment to change several entries of a matrix at one. For example, to create a diagonal matrix with a diagonal of [1,2,3]: Input:
Output:
Input:
To make the last column [4,5,6]: Input: