MATLAB: Write a function that calculate area of a disk sector.assume disk radius r and the sector angle a .consider two cases. 1)the angle is given in radians. 2)the angle is given in degrees.

function

function =circlearea (radius)
area=pi*radius^2;
r=input('enter radius of circle');
a=circlearea(r);
than i don't know what to do can i get help if its right or wrong ?

Best Answer

function area = circlearea(radius)
area=pi*radius^2;
However, your question is about determining the area of a sector given the angle of the sector. See https://revisionmaths.com/advanced-level-maths-revision/pure-maths/trigonometry/radians