Printing fit coefficinets in function
jmas340
Function Fitcenter(data)
Wave data
CurveFit/M=2/W=0 gauss, data/D
Variable/G center = W_coef[2]
Wave data
CurveFit/M=2/W=0 gauss, data/D
Variable/G center = W_coef[2]
However, the compile debugger thing says that W_coef[2] is an unknown symbol
Wave data
CurveFit/M=2/W=0 gauss, data/D
Wave/Z W_coef
Variable/G center = W_coef[2]
// alternatively to setting a global variable
// Return W_coef[2]
End
If you return the value you can use it and avoid global variables.
July 20, 2016 at 01:19 pm - Permalink
I want to display that center frequency in a panel
July 20, 2016 at 01:26 pm - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
July 20, 2016 at 06:15 pm - Permalink