what is the problem with my function ?
3 views (last 30 days)
Show older comments
abdelrahman mohamed
on 27 Sep 2018
Commented: abdelrahman mohamed
on 27 Sep 2018
function [area , cr ]= circle(r) area = pi* (r^2) ; cr = pi * r * 2 ;
0 Comments
Accepted Answer
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)
See Also
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!