```
import numpy as np
# Create a 3x3 matrix filled with the value 4
matrix = np.full((3, 3), 4)
# Create a 1D array with values ranging from 0 to 8
arr = np.arange(9)
# Assign the values from the array to specific indices in the matrix
matrix=arr.reshape(3,3)
print(matrix)
```