LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interpolate 1D ntimes

Well, you are looking in the wrong place. Row 1 is the frequency axis, not the power spectrum.
 
To get the correct X values, you need to do as I did in the B example above. You cannot multiply the original x-axis with any factor, because they are inversely related df=1/(N*dt).
 
In my example code:
 
ntimes=05 X(10)=0.0332, Y(10)=0.1499
ntimes=10 X(10)=0.0332, Y(10)=0.1494
 
The X are the same and the y differ by 0.0005. 🙂 Right?
 
Close enough! 😄
 

cig438 wrote: Something must be wrong in my code - maybe you can show me explicitly how you would change it get a constant MTF array independent of ntimes ?
Yes, check out my example code above:  MTF_exampleMOD_B.vi
 
 
Message 11 of 12
(453 Views)
Yes - I understand it now. I was not specifying the dt correctly & also should have been scaling the x-axis after the power spectrum generation.
Thanks for the help. 🙂



0 Kudos
Message 12 of 12
(431 Views)