function [fitresult, gof] = createLOGFit(licznosc_tab, Shell_Tokuda_nieposortowane_unikatowe) %CREATEFIT(LICZNOSC_TAB,SHELL_TOKUDA_NIEPOSORTOWANE_UNIKATOWE) % Create a fit. % % Data for 'untitled fit 1' fit: % X Input : licznosc_tab % Y Output: Shell_Tokuda_nieposortowane_unikatowe % Output: % fitresult : a fit object representing the fit. % gof : structure with goodness-of fit info. % % See also FIT, CFIT, SFIT. % Auto-generated by MATLAB on 09-Apr-2019 21:05:51 %% Fit: 'untitled fit 1'. [xData, yData] = prepareCurveData( licznosc_tab, Shell_Tokuda_nieposortowane_unikatowe ); % Set up fittype and options. ft = fittype( 'a*x*log(x)+b', 'independent', 'x', 'dependent', 'y' ); opts = fitoptions( 'Method', 'NonlinearLeastSquares' ); opts.Display = 'Off'; opts.StartPoint = [0.338783773312375 0.618611048034127]; % Fit model to data. [fitresult, gof] = fit( xData, yData, ft, opts );