Scipy - how to make a matrix with specific rows and columns?

Up vote 0 down vote favorite share g+ share fb share tw.

I have the following code: import scipy as sc import matplotlib. Pyplot as plt .... MeanSquareDistance1D=lambda n,m: ((m*Lastpoint1d(n)**2).sum())/m ...... data= for I in range(10,110,20): #mydata=list(sc. Mat(i,MeanSquareDistance1D(i,2000))) #data.

Append(mydata) mydata=(sc. Array(i,MeanSquareDistance1D(i,2000))).tolist() I did it like this data. Append(mydata) plt.

Plot(data) plt.show() I want the 'mydata' to be a matrix or array(preferable) (i am convering it to a list in order to do the plot) with I lines (5 lines) and 2 columns. The first column should be the 'i' and the second the value of MeanSquareDistance1D(i,2000). I am receiving the error 'ValueError: x and y can be no greater than 2-D' scipy link|improve this question edited Jan 16 at 14:01 asked Nov 4 '11 at 13:17George477311 90% accept rate.

Ok, I found it! I am editing the post – George Nov 4 '11 at 15:51 2 If you found an answer you should write it down as an answer and then accept it (possible 48h later I think). You should not change the title to "solved ..." – xubuntix Nov 10 '11 at 8:32.

Import scipy as sc import matplotlib. Pyplot as plt .... MeanSquareDistance1D=lambda n,m: ((m*Lastpoint1d(n)**2).sum())/m ...... data= for I in range(10,110,20): #mydata=list(sc. Mat(i,MeanSquareDistance1D(i,2000))) #data.

Append(mydata) mydata=(sc. Array(i,MeanSquareDistance1D(i,2000))).tolist() I did it like this data. Append(mydata) plt.

Plot(data) plt.show().

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions