04-13-2019 03:55 PM
What am I doing differently between these two files? I want to plot two curves on the same plot in the file DecayingGaussian.vi, but when doing the same thing as in 2 curves in single plot-1.vi, I get an error. I'm at a loss.
Solved! Go to Solution.
04-13-2019 04:28 PM
Modify decaying Gaussian like below.
mcduff
04-14-2019 12:01 PM - edited 04-15-2019 09:28 AM
Your x-values are equally spaced (x0=0, dx=1), so a simple waveform graph is sufficient.
Also:
04-14-2019 12:33 PM
Also note that you are doing a lot of duplicate operations. For example the Gaussian only needs to be calculated once before the loop and not 500 times in a row. The outer FOR loop only applies scaling.
There are plenty of ways to rewrite that code more efficiently, here is one possibility.