I have a u0
list in which values are appended, and then I have to take the transpose of u0, but when I am doing this, I still get a row matrix, but I want to show it as a column matrix. From other answers, I learned that there would be no difference in calculations, but I want it to be shown as column matrix and this can be used further for calculations.
x_mirror
is also a list.
u0 = []
for p in range(0,tpts): #initial condition at t = 0
ts = ((np.exp(alpha*((x_mirror[p]-x_start)**2))*(np.cos(k0*(x_mirror[p]-x_start)))))
u0.append(ts)
Any help is highly appreciated.