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.
fprintf('For r=%4.2f, the value of c is %4.2f\n',r,c);
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...
This is only a preview of the solution. Please use the purchase button to see the entire solution