Hello Community,

I’m struggling with Week 2 Course 1 Programming Assignment Exercise 4

I reshaped the array as required but its still showing me error

Test case “default_check”. Wrong shape of the output matrix. Check horizontal stack of matrix A and vector b.

Expected: (4, 5).

Got: (4, 4)

Hello @Bilawal_Khan

From the above error please ensure that the shapes of matrix A and vector b are compatible. The number of rows in matrix A should match the length of vector b, and the resulting horizontal stack should have the expected shape of (4, 5).