Error using horzcat
Dimensions of matrices being concatenated are not consistent.
Error in symvar>findrun (line 163)
d = diff([0 x 0]);
Error in symvar (line 26)
[b,e] = findrun(s==' ');
Error in fittype>iCreateCustomFittype (line 463)
variableNames = symvar( obj.expr );
Error in fittype>iCreateFittype (line 351)
obj = iCreateCustomFittype( obj, varargin{:} );
Error in fittype (line 328)
obj = iCreateFittype( obj, varargin{:} );
Error in fit>iFit (line 157)
model = fittype( fittypeobj, 'numindep', size( xdatain, 2 ) );
Error in fit (line 108)
[fitobj, goodness, output, convmsg] = iFit( xdatain, ydatain, fittypeobj, ...
1 Comment
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/107439-error-when-trying-to-fit-a-custom-function-using-cftool#comment_289843
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/107439-error-when-trying-to-fit-a-custom-function-using-cftool#comment_289843
Sign in to comment.