How do I plot data generated from my function? Sorry I am new to the programming. We have made variables and did a do loop to generate repeated variables at different times. We can't even plot this without transferring it to excel. I know there are functions to do this in Igor. Can anyone point me to the right spot in the manual or know how to make a simple code to graph data? Or even how to make a data folder where we can graph it then?
Uploaded is the code.
Thanks
hh5.1.pxp
(18.21 KB)
* change your do/while loop to a for/endfor loop
* create waves to store your values
* store each iteration
After you run the procedure, you can use display to show any one or multiple sets of the the waves.
HTH
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
December 6, 2010 at 11:13 am - Permalink
I split the number crunching into a subroutine (DoSimulationForOnePoint) so that the structure of the main routine (RunSimulation) remains clear.
In this case, it could be simplified to this:
and simplified further to:
December 6, 2010 at 03:01 pm - Permalink