フィルターのクリア

can anyone help me to solve these error

2 ビュー (過去 30 日間)
Kartik Lanjewar
Kartik Lanjewar 2021 年 6 月 13 日
コメント済み: madhan ravi 2021 年 6 月 13 日
% to calculate the specific volume v of n butane at 500 k and 18 atmp
function [y] = specvol(V)
Tc = 425.2; % data from Perry's Chemical Handbook critical constant
pc = 37.5; % data from Perry's Chemical Handbook { bar*1*10^5Pa/bar*1 atm/10
T = 500 ;
P = 18 ;
R = 0.082050 ;
aRK = 0.42748*(R*Tc)^2/pc ;
aRK = aRK*(Tc/T)^0.5 ;
bRK = 0.08664*(T*Tc/pc) ;
y = P*v^3- R*T*v^2 + ( aRK - P*bRK^2 - R*T*bRK)*v- aRK*bRK ;
end

採用された回答

madhan ravi
madhan ravi 2021 年 6 月 13 日
function [y] = specvol(V) % change capital V to v
  1 件のコメント
madhan ravi
madhan ravi 2021 年 6 月 13 日
Ofcourse if v is a vector then vectorize the last line by changing ^ to .^

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeChemistry についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by