what is the problem with my function ?

1 view (last 30 days)
function [area , cr ]= circle(r) area = pi* (r^2) ; cr = pi * r * 2 ;

Accepted Answer

Bish Erbas
Bish Erbas on 27 Sep 2018
Edited: Bish Erbas on 27 Sep 2018
Formatting.
function [area, cr] = circle(r)
area = pi*(r^2);
cr = pi*r*2;
end

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!