Homework matlab problem - Determine r1, r2 and surface area - use matrix?
이전 댓글 표시
ive been staring at this problem and cant get anything. im a college student i dont u see what to do with the unknown variables
the unit we are in now is covering - input and output commands - display commands - fprintf - load commands
help will be greatly appreciated KEEP IT SIMPLE IF POSSIBLE. THIS IS ONLY CHAPTER 4 OF AN INTRO CLASS
an ice cream cone shaped as a frustum of a cone with R2=(1.2)(R1) is designed to have a volume of 1,000 cm cubed. Determine R1, R2 and the surface area , s, of the paper for containers with heights h of 8, 10, 12, 14, and 16 cm. Display the results in a table. The volume of the container, V, and the surface area of the paper are given by
V = (1/3)(pi)(h)(R1^2 + R2^2 + R1R2)
S = (pi)(R1+R2)sqrt[(R2-R1)^2 + h^2] + (pi)(R1^2 + R2^2)
댓글 수: 3
TAB
2011년 9월 28일
Please see
http://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-help-on-homework-questions-on-matlab-answers.
This is forum for matlab specific questions. First try your homework problems yourself, after that if you get any difficulty then post your matlab code and ask your question.
Morley
2011년 9월 28일
M VENKATESH
2021년 9월 10일
A cone shaped cup is designed to have a volume of 250 cm³. Determine the radius, r, of the base and the surface area, S, of the paper for cups with heights, h of 5,6,7,8, and 9 cm. The volume V, and the surface are of the paper are given by: V=1/2pi r²h und S = pi r sqrt(r²+h²). How to put this problem
채택된 답변
추가 답변 (4개)
Andrei Bobrov
2011년 9월 28일
EDITED
syms R1 R2 h S positive
r1s = subs([1000 - 1/3*pi*h*(R1^2 + R2^2 + R1*R2),...
pi*(R1+R2)*sqrt((R2-R1)^2 + h^2) + pi*(R1^2 + R2^2)],R2,1.2*R1)
r1s(1) = solve(r1s(1),R1)
f = cell(2,1); for j1 = 1:2, f{j1} = matlabFunction(r1s(j1)); end
h = (8:2:16)';
r1 = f{1}(h);
out = [h,r1,1.2*r1,f{2}(r1,h)]
댓글 수: 1
Amin Sultan
2019년 2월 26일
How would you arrange the values into columns
Jackie Cortez
2016년 10월 18일
0 개 추천
Is there a way to do this problem without using syms or subs? It keeps telling me I have to License and install the Symbolic Math Toolbox which I don't have.
댓글 수: 1
Andrei Bobrov
2019년 2월 26일
Without Symbolic Math Toolbox:
Veq1000 = @(h,R1)1000 - 1357/356*h.*R1.^2;
s = @(h,R1)(R1*pi.*(61*R1 + 11*(R1.^2 + 25*h.^2).^(1/2)))/25;
h = (8:2:16)';
n = numel(h);
r1 = zeros(n,1);
for ii = 1:n
r1(ii) = fzero(@(R1)Veq1000(h(ii),R1),1);
end
out = [h,r1,1.2*r1,s(h,r1)];
Divya Pateriya
2019년 10월 17일
h = input('Please enter the array of height :');
v=input('please tell the volume of frustum :');
r1 = sqrt((3*v)./(pi*h.*3.64));
r2=(1.2).*r1;
s=pi.*(r1+r2).*sqrt((r2-r1).^2+h.^2)+pi.*(r1.^2+r2.*2);
Result=[h;r1;r2;s];
Table = Result'
댓글 수: 1
John D'Errico
2019년 10월 17일
편집: John D'Errico
2019년 10월 17일
Sigh. This does not display the result in a table. It creates a variable named Table. It only computes the result for ONE value of h, so there is no table created anyway.
dania tr
2021년 10월 27일
0 개 추천
The surface area A of a sphere depends on its radius r as follows: A = 4 ᴫ r 2 . Write a MATLAB function to compute the surface area. Call your function to compute A at r = 5 and display the result.
댓글 수: 1
Walter Roberson
2021년 10월 27일
I do not understand how this information can be used to answer Morley's Question about cones asked in 2011 ?
카테고리
도움말 센터 및 File Exchange에서 Number Theory에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!