ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

mathscript Note :unexpected char: '@'

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.

 

 

0 Kudos
Message 1 of 3
(7,633 Views)

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...

0 Kudos
Message 2 of 3
(7,574 Views)

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?

0 Kudos
Message 3 of 3
(6,252 Views)