Answer:
See explaination
Explanation:
The M-file that prompts the user for the type of connection, series and parallel and number of resistors n, then computes the equivalent resistance is;
Please kindly go to attachment for a step by step explaination of the answer.