So I've got a fit done with cftool:
%% Fit: 'untitled fit 1'.
[xData, yData] = prepareCurveData( N, A );% Set up fittype and options.
ft = fittype( 'poly6' );% 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, 'A vs. N', 'untitled fit 1', 'Location', 'NorthEast', 'Interpreter', 'none' );% Label axes
xlabel( 'N', 'Interpreter', 'none' );ylabel( 'A', 'Interpreter', 'none' );grid onhold on
Now I want the fit-function to be applid on a variable, let's say y. Hence fit-function(y). For example if the fit-function would go like fit = m*x +n, I'd like to reform it to fit = m*y + n. Thanks in advance and appologies for the 3th question asked in such a short period of time.
Best Answer