In polar coordinates a two-dimensional vector is given by its radius and angle (r, theta). Write a user-defined function that adds two vectors that are given in polar coordinates. For the function name and arguments use Where A is a matrix with rows as number of vectors and columns as rand theta. The output arguments are radius and angle of the result. Use the function to carry the following additions: Solution Type the code as below in a matlab file with name \'addvecpol.m\' function [r th] = addvecpol(a) x1=a(1,1)*cos(a(2,1)*pi/180); y1=a(1,1)*sin(a(2,1)*pi/180); x2=a(1,2)*cos(a(2,2)*pi/180); y2=a(1,2)*sin(a(2,2)*pi/180); x3=x2+x1; y3=y2+y1; r=sqrt(x3.^2+y3.^2); th=atan(y3/x3)*180/pi; output for a) is r = 16.8451 th = 35.0215 output for b) is r = 19.7048 th = -67.4337 output for c) is r = 10.6878 th = -53.7622.