Hello,
when i write this code in matlab it only gives me the value for the Area A and not the circumference C. What did I do wrong? Thanks
function [A,C]= myfunction(radius)radius=2.45;A=pi*(radius^2);C=2*pi*radius;end
function
function [A,C]= myfunction(radius)radius=2.45;A=pi*(radius^2);C=2*pi*radius;end
Best Answer