Solved
sorting data
- August 11, 2016
- 5 replies
- 4160 views
Hello,
Could anyone help me to sort the output of my attached program so I can plot I(k0) when x-axis is "d" and y-axis is "theta" ?
thank you very much in advance
Payman
I assume you want a 3D plot with d on the x-axis, theta on the y-axis, and I(k0) on the z-axis:

As others have noted, move stuff out of the inner loop that does not need to be there. You also don't need to create large vectors or matrices of intermediate results that you do not return from the program.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.