In matlab ask the user to select whether to repeat theNewton-Raphson calculation or end the program. If the user exitsout of the menu, repeat the request until the user makes aselection. If the program is repeated, store the new final value ofthe root and new number of iterations in the same variables withoutoverwriting the previous results. Once the user chooses to end theprogram, save the variables containing the root values and numbersof iterations as calculation res.mat
this is my code so far
vector = input("Enter a vector which has an even number ofelements: ");
the vector you enter is the polynomial you work with
the vector that is entered is [0.2 0.3 0 2.4 9.8 -21.4]