Question
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
function Solution(r)c=sqrt(r^2-(0.8*r)^2);
fprintf('For r=%4.2f, the value of c is %4.2f\n',r,c);
h=0:0.05:0.8*r;
V=1/3*pi*h.*(3*r^2-h.^2); %the dot allows you to multiply two vector
%of the same size in matlab component by component...