This is my code. We are coding newton-rhapson method and the code is working fine, but I cant seem to figure out how to add a table with the actual values showing at the end which is required on the assignment.
n=input('Enter the number of decimal places:');
x0 = input('Enter intial approximation:');
fprintf('The Root is : %f \n',y);
fprintf('No. of Iterations : %d\n',i);