NR Matlab Cod PDF
NR Matlab Cod PDF
disp('==================================')
disp('ourput Table with Iteration
wise')
Result=array2table(HG); %Convert Aray
to Table for displaying
Result.Properties.VariableNames(1:size(HG,2))=Va
riables
x0=x0-rem(x0,10^-n); % Convert to n
decimal Places
%
% end
fprintf('Converged solution after %
iteration \n', iter);
fprintf('Root is %4f \n', x0); %Final Root
print
%end
%end
end