% calculate the area of the circle
function a_circle = area(r)
a_circle=pi*r^2;
end
%calculate the volume of the cone
function v = vol(r,h)
v=0.333*area(r)*h;
end
в приведенном выше коде показывает, что vol (r, h) не используется.Как я могу исправить эту ошибку?