Plotting isotherms for ideal gas law

8 visualizaciones (últimos 30 días)
Lindsay Roth
Lindsay Roth el 30 de Ag. de 2018
Abierta de nuevo: Lindsay Roth el 4 de Sept. de 2018
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.

Respuestas (1)

FastCar
FastCar el 30 de Ag. de 2018
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)

Categorías

Más información sobre Gas Models en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by