08-18-2014 03:09 AM
I was trying to use the mathscript to fit nonlinear curve with the function ‘lsqcurvefit’,and one error occured:unexpected char: '@'.
some code in the mathscript note is shown as following: out = lsqcurvefit(@TransferFunc, [amplitudeGuess * frequencyGuess ^ 2, frequencyGuess], f, psd', [], [], fitOptions) ;
’TransferFunc‘ is the definition of the expression of the curve to be fitted.
Any help would very appreciated.
08-18-2014 03:51 AM
this is a forum about LabWindows/CVI... but it is not clear to me in how far your question is related to CVI... lsqcurvefit is not a library function of CVI but of Matlab...
08-25-2015 07:35 PM
Same problem here. I try to run the built-in function inpolygon of matlab using Mathscript and i get the same error 'unexpected char: '@''. How can i overcome the problem?