MATLAB: #what is the problem in the code so that it is not accepted? circle problem function [area,cf]=circle(r)cf=2*pi*r;area=pi*r*r;end Best Answer That code is accepted. But you need to store it in circle.m, and you need to pass a value on the command line:>> [A,B] = circle(7)A = 153.9380400259B = 43.9822971502571 Related SolutionsMATLAB: A function to draw a circle with only radius as parameter function cercle(r)x=-r:.01:ry=sqrt(r^2-x.^2)hold on;plot(x,y);plot(x,-y)call the function cercle(5) MATLAB: To transfer datas among the GUIs You probably want r=getappdata(0,'Variable1') % get the value of radius from circle UIas the second parameter to getappdata is a string. Related QuestionDelete an unwanted blob in binary imageCircle function issue i don;t know why it’s not working and giving me the error of undefined function or variable.Plotting circlesWhat is the problem with the functionWriting a “circle” functionDraw arc in Matlab
Best Answer