Reading the name of a wave name and using it in a print command
Eduard Kas
In the function below I would like to read the name of wave Input and use it in a print command. (Here, the function shows what I would like to get.)
Function HurstEstimate(Input, Fluctuation, Scale)
Wave Input, Fluctuation, Scale
k0=0;
CurveFit/Q/H="100"/NTHR=0/TBOX=1017 Power Fluctuation /X=Scale
Wave W_Coef
Print "The Power Curve estimate for "Input" =", W_Coef[3]
End
Wave Input, Fluctuation, Scale
k0=0;
CurveFit/Q/H="100"/NTHR=0/TBOX=1017 Power Fluctuation /X=Scale
Wave W_Coef
Print "The Power Curve estimate for "Input" =", W_Coef[3]
End
So if the name of the Input wave is Microsoft I would like to arrive at the following print outcome: " The Power Curve estimate for Microsoft = ....." The next time when the name of the input wave is Apple I like to get the output "The Power Curve estimate for Apple = .....", etc.
I have been reading for some time about string parameters, but that did not bring me further towards a solution. Any help is welcome.
Eduard
maybe the command
NameOfWave
can help you here?This then looks like
September 19, 2012 at 08:25 am - Permalink
September 19, 2012 at 08:31 am - Permalink
Eduard
September 19, 2012 at 10:17 am - Permalink