function [fitresult, gof] = createFit3(t_v, V_t)
%CREATEFIT3(T_V,V_T)
%  Create a fit.
%
%  Data for 'untitled fit 1' fit:
%      X Input: t_v
%      Y Output: V_t
%  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 13-Mar-2024 15:18:37


%% Fit: 'untitled fit 1'.
[xData, yData] = prepareCurveData( t_v, V_t );

% Set up fittype and options.
ft = fittype( 'smoothingspline' );

% Fit model to data.
[fitresult, gof] = fit( xData, yData, ft );

% % Plot fit with data.
% figure( 'Name', 'untitled fit 1' );
% h = plot( fitresult, xData, yData );
% legend( h, 'V_t vs. t_v', 'untitled fit 1', 'Location', 'NorthEast', 'Interpreter', 'none' );
% % Label axes
% xlabel( 't_v', 'Interpreter', 'none' );
% ylabel( 'V_t', 'Interpreter', 'none' );
% grid on


