Question: interchanging rows and column values in matrix

I am done with my code but in the end my matirx B contains values in worng order. In matrix B am having row values in column and column values in row due to which my graph is not in correct form. What should i do to change these values..?? Attaching worksheet let me know. Thanks
code_for_neuman_1d_h.mw

Please Wait...