Does the attached help?
You don't want the "[i" in the output array this will only give the last value for each of your variables (?)
Assigning the output of the program then allows the data calculated to be accesible to mathcad.
I'm not sure what you want to plot , so if you have further questions you will need to re-post.
Regards
Andy