differentiation of vol for theta
1 次查看(过去 30 天)
显示 更早的评论
Can you show me what is the answer?What is the answer?
dvol/dtheta?
clear();
r = 8; % compression ratio
s = 100; % stroke (mm)
b=s; % bore=stoke
len= 150; % connecting rod length (mm)
Vd= b^2*s*pi/4; % displacement volume
Vc=Vd/(r-1); % clearence volume
a=s/2; % radius of crank shaft
theta=-180:1:180; % crankangle theta vector
y =len+a-((len^2-a^2*sind(theta).^2).^(1/2) +a*cosd(theta)); % .^2).^
vol= Vc+y*b^2*pi/4; % exact volume
0 个评论
采纳的回答
Ameer Hamza
2020-4-9
编辑:Ameer Hamza
2020-4-9
Use gradient to differentiate vol with respect to theta numerically
dvol_dtheta = gradient(vol, theta);
10 个评论
Ameer Hamza
2020-4-9
No problem, you will learn with time. I am glad to be of help. You can try this course to get started in MATLAB: https://www.mathworks.com/learn/tutorials/matlab-onramp.html
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!