07-16-2015 10:49 AM
Hi,
I'm attempting to use the 'fit' function in the mathscript node however it informs me that my input parameters are not in the correct format. In order to check if this is the fault of my inputs I have written out the vectors within the mathscript window and checked that this works in Matlab itself (it does) however it still says that the input parameters are incorrect.
I've tried this by pointing towards a user defined function (which uses the fit function) and also pasting the lines contained therein into the mathscript node. None of these seem to make any difference. Is there anything obvious that I'm missing which would cause this error?
Thanks for any help.
Regards,
Graham
07-16-2015 11:22 AM
Most here are graphical programmers and don't deal well with verbal descriptions. Can you show us some code?
07-16-2015 07:56 PM
Here is the help document for fit in MathScript
http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmath/msfunc_fit/
07-17-2015 03:51 AM
I managed to get it to work using the example in the help file and applied that approach to my input data successfully. The only problem is it appears to not work with the 'exp2' fit that I was trying to use. Is this an unsupported function within labview or is there some other reason that this would not work? From the help file it would seem to suggest this.
07-19-2015 08:26 PM
MathScript only supports the models which are listed in the help. 'exp2' is not supported.