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 part denominated radius_cone that get appraise the radius of a cone fond brace input variables, Book and tallness. The part get be determined relish this: r = radius_cone(95,10) where 95 is the Book and 10 is the tallness. The repay of the part should be a separate output containing the radius.

    cone.png

    Expert Retort

     

    Here is the order restraint you:

    %Write a MATLAB part denominated radius_cone that get appraise the radius of

    %a cone fond brace input variables, Book and tallness. The part get be

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

    %the tallness. The repay of the part should be a separate output

    %containing the radius.

    part radius = radius_cone(volume, tallness)

    radius = sqrt(3*book / (pi * tallness));

    end

    And the output screenshot is: