Plotting isotherms for ideal gas law

조회 수: 8 (최근 30일)
Lindsay Roth
Lindsay Roth 2018년 8월 30일
다시 열림: Lindsay Roth 2018년 9월 4일
Plot isotherms for 5 moles of an ideal gas in the temperature range of 20 K to 400 K (with 20 K spacing in temperature). Choose the volume to vary from 0.1 L to 40 L.

답변 (1개)

FastCar
FastCar 2018년 8월 30일
Given that pV=nRT the volume vector is V=[0.1:0.1:40]/1000 temperature vector is T=[20:20:400] from the status equation p=nRT./V (mind ./ because they are vector and you want pointwise operation) then figure plot(T,p)

카테고리

Help CenterFile Exchange에서 Gas Models에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by