Dear all,
I have two datasets arrays:
A = [0 0.423891532 0.819380304 1.289479809 1.739548357 2.288748183 2.8990623 3.618974647 4.402757506 5.268816221 6.240886445 7.278958674 8.321358342 9.369407383 10.37825178 11.17417756 12.02774088 12.69808163
ANSWER
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
You can see the residual error with linear fit to see which dataset is more linear
[~, eA] = polyfit(1:numel(A), A, 1) [~, eB] = polyfit(1:numel(B), B, 1)
Result
>> eA.normr ans = 4.0713 >> eB.normr
Comments
Post a Comment