Homework Solution: Write a MATLAB function named radius_cone that will compute the radius of a cone given two input variables, V…

    Write a MATLAB function named radius_cone that will compute the radius of a cone given two input variables, Volume and height. The function will be called like this: r = radius_cone(95,10) where 95 is the Volume and 10 is the height. The return of the function should be a single output containing the radius. cone.png

    Expert Answer

     
    Here is the code for you: %Write a MATLAB function named radius_cone that will compute the radius of

    Write a MATLAB power determined radius_cone that procure scold the radius of a cone attached span input variables, Dimensions and apex. The power procure be determined enjoy this: r = radius_cone(95,10) where 95 is the Dimensions and 10 is the apex. The produce of the power should be a only output containing the radius.

    cone.png

    Expert Repartee

     

    Here is the adjudication for you:

    %Write a MATLAB power determined radius_cone that procure scold the radius of

    %a cone attached span input variables, Dimensions and apex. The power procure be

    %determined enjoy this: r = radius_cone(95,10) where 95 is the Dimensions and 10 is

    %the apex. The produce of the power should be a only output

    %containing the radius.

    power radius = radius_cone(volume, apex)

    radius = sqrt(3*dimensions / (pi * apex));

    end

    And the output screenshot is: