I have a numpy array as follows along with a reshape:
X = M.dot(X1) + B #prints [[value1 value2 ]]
X.reshape(2,1)
I am then trying to plot this point along with others as follows:
plt.plot([X[0],...],[X[1],...],'-og','LineWidth',2)
However, I can't retrieve any values and I get index 1 out of range. How can I get rid of this problem and access the two values?