The following code for fitting a gaussian is returning the error "There should be atleast two data points". There are definitely more than two data points. Kindly help me resolve this issue.
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
K>> dbstop if error K>> a = load('calibrate100proc10.lvm'); K>> x = a(:,1); K>> y = a(:,2); K>> plot(x,y); K>> d = hist(y,1000); K>> d1 = d(:,1); K>> d2= d(:,2); K>> f = fit(d1,d2,'gauss1'); Error using fit>iFit (line 259) There should be at least two data points.
0 Kommentare
Antworten (1)
Torsten
am 18 Mär. 2015
According to the documentation for hist, I guess that d2 is an empty vector.
Best wishes
Torsten.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Descriptive Statistics and Visualization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!