MATLAB: What is the problem with the function

area

function [area , cr ]= circle(r) area = pi* (r^2) ; cr = pi * r * 2 ;

Best Answer

Formatting.
function [area, cr] = circle(r)
area = pi*(r^2);
cr = pi*r*2;
end
Related Question