11-15-2012 08:20 PM
Hello.
I use Constrained Nonliner Curve Fit.vi to fit a customed function, just in the following picture 1. The initial paraments are exactly right, but it always stopped by a error -20003,it says "The number of samples must be >0",just as the picture 2.
What should I do to correct it? Thanks!
11-16-2012 01:34 AM
Can you attach your code and some sample data? How big is the [X] array? The [a] array?
Does it work if you remove the partial derivatives calculation? (LabVIEW will automatically substitute numerical derivatives).
(The way you index into [a] seems incredibly convoluted. Couldn't you simply reshape into four columns and autoindex on a FOR loop?)