Write a MATLAB function to approximate the infinite series using N terms. The value of N is the input for the N terms and how close the limit should be to four decimal places is 0.4567. The series is defined as 1/(n+5) where n is the kth harmonic number [2]. For this problem, k=5 and the series limit to four decimal places is 0.4567.
Your function should compute the approximation using recursion. Implement the function using a recursive function and do not use element by element operations or MATLAB's sum function. Calculate and return the percent error between your approximation and the series limit of 0.4567 for k=5. To calculate the percent error, subtract the limit from your calculated approximation, divide the result by the limit, and multiply it by 100.
Function:
function [approxerrPercent] = sumOfTelescopingN()
limit = 0.4567;
% implement it using recursion, no loop, no sum