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 business determined radius_cone that allure scold the radius of a cone ardent couple input variables, Size and apex. The business allure be determined love this: r = radius_cone(95,10) where 95 is the Size and 10 is the apex. The repay of the business should be a unmarried output containing the radius.

    cone.png

    Expert Vindication

     

    Here is the principle coercion you:

    %Write a MATLAB business determined radius_cone that allure scold the radius of

    %a cone ardent couple input variables, Size and apex. The business allure be

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

    %the apex. The repay of the business should be a unmarried output

    %containing the radius.

    business radius = radius_cone(volume, apex)

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

    end

    And the output screenshot is: