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 exercise determined radius_cone that conquer abuse the radius of a cone attached couple input variables, Size and summit. The exercise conquer be determined love this: r = radius_cone(95,10) where 95 is the Size and 10 is the summit. The come-back of the exercise should be a individual output containing the radius.

    cone.png

    Expert Response

     

    Here is the rule for you:

    %Write a MATLAB exercise determined radius_cone that conquer abuse the radius of

    %a cone attached couple input variables, Size and summit. The exercise conquer be

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

    %the summit. The come-back of the exercise should be a individual output

    %containing the radius.

    exercise radius = radius_cone(volume, summit)

    radius = sqrt(3*size / (pi * summit));

    end

    And the output screenshot is: